Files
Newton-LSP/languageServers.js
2025-08-09 15:59:58 -05:00

79 lines
1.9 KiB
JavaScript

exports.servers = [
{
endpointName: "python",
args: ["pylsp"],
nameEndsWith: ".python",
connectionType: "stdio",
relativePath: false
}, {
endpointName: "gdscript",
args: [
"./Godot_v4.4-stable_linux.x86_64", ["--headless", "--lsp-port", "9999"]
],
nameEndsWith: ".gd",
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: "cpp",
args: [
'clangd', ['--log=error']
],
nameEndsWith: ".cpp",
connectionType: "stdio"
}, {
endpointName: "java",
args: [
'javals', ["jdtls"]
],
nameEndsWith: ".java",
connectionType: "stdio"
}, {
endpointName: "java-other",
args: [
'javals', ["java-language-server"]
],
nameEndsWith: ".java",
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
},
];