forked from 2742195759/xkvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlsp_config.py
54 lines (53 loc) · 1.88 KB
/
lsp_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
configuration = {
"servers": {
"clangd": {
"filetype": ["c", "cpp", "objc", "objcpp", "cc", "h", "hpp"],
"rootPatterns": [".git"],
"initializationOptions": None,
"languageId": "cpp",
"executable": "clangd",
"command": "clangd --background-index=0 --compile-commands-dir={rootUri} -j=10 2>clangd.log",
"install": "bash /root/xkvim/install_sh/install_clangd.sh"
},
#"jedi": {
#"filetype": ["py"],
#"initializationOptions": None,
#"rootPatterns": [".git"],
#"languageId": "python",
#"executable": "jedi-language-server",
#"command": "jedi-language-server 2>jedi.log",
#"install": None
#},
"pylsp": {
"filetype": ["py"],
"initializationOptions": None,
"rootPatterns": [".git"],
"languageId": "python",
"executable": "pylsp",
"command": "pylsp 2>pylsp.log",
"install": 'pip install "python-lsp-server[all]"'
},
"haskell": {
"filetype": ["hs"],
"initializationOptions": None,
"rootPatterns": [".git"],
"languageId": "haskell",
"executable": "haskell-language-server-wrapper",
"command": "haskell-language-server-wrapper -j 5 --debug --cwd {rootUri} --lsp",
"install": None
},
"cmake": {
"filetype": ["cmake", "txt"],
"initializationOptions": {
"buildDirectory": "{rootUri}/build",
},
"rootPatterns": [".git"],
"languageId": "cmake",
"executable": "cmake-language-server",
"command": "cmake-language-server",
"install": "pip install cmake-language-server"
},
},
"client": {
},
}