-
Notifications
You must be signed in to change notification settings - Fork 1
/
defaultServers.js
67 lines (67 loc) · 1.76 KB
/
defaultServers.js
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
55
56
57
58
59
60
61
62
63
64
65
66
67
exports.servers = [
{
endpointName: "svelte",
args: [
'node', [require.resolve('svelte-language-server/bin/server.js')], {
env: Object.create(process.env),
stdio: [null, null, null, 'ipc']
}
],
nameEndsWith: ".text",
connectionType: "ipc",
relativePath: true
}, {
endpointName: "python",
args: ["pylsp"],
nameEndsWith: ".python",
connectionType: "stdio",
relativePath: false
}, {
endpointName: "astro",
args: [
'node', [require.resolve('@astrojs/language-server/bin/nodeServer.js'), "--stdio"]
],
nameEndsWith: ".astro",
connectionType: "stdio",
relativePath: false
}, {
endpointName: "go",
args: [
'gopls', ['-mode=stdio', '-remote=auto']
],
nameEndsWith: ".golang",
connectionType: "stdio",
relativePath: false,
serverFileNameReplacePattern: {
from: /.golang$/,
to: ".go"
},
clientFileNameReplacePattern: {
from: /.go$/,
to: ".golang"
},
}, {
endpointName: "c",
args: [
'clangd', ['--log=error']
],
nameEndsWith: ".c",
connectionType: "stdio"
}, {
endpointName: "r",
args: [
'r', ['--slave', '-e', 'languageserver::run()']
],
nameEndsWith: ".r",
connectionType: "stdio",
relativePath: false
}, {
endpointName: "lsp-ai",
args: [
"lsp-ai"
],
nameEndsWith: ".js",
connectionType: "stdio",
relativePath: false
}//add any other language servers here
];