48 lines
1.2 KiB
JavaScript
48 lines
1.2 KiB
JavaScript
|
exports.servers = [
|
||
|
{
|
||
|
endpointName: "python",
|
||
|
args: ["pylsp"],
|
||
|
nameEndsWith: ".python",
|
||
|
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: "typescript",
|
||
|
args: [
|
||
|
'typescript-language-server', ['--stdio']
|
||
|
],
|
||
|
nameEndsWith: ".ts",
|
||
|
connectionType: "stdio",
|
||
|
relativePath: false
|
||
|
},
|
||
|
];
|