Files
Newton-LSP/languageServers.js

55 lines
1.3 KiB
JavaScript
Raw Normal View History

2025-05-27 21:31:02 -05:00
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"
2025-07-12 01:50:58 -05:00
}, {
endpointName: "cpp",
args: [
'clangd', ['--log=error']
],
nameEndsWith: ".cpp",
connectionType: "stdio"
2025-05-27 21:31:02 -05:00
}, {
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
},
];