[Feature] Allow for custom path to a language server binary (#1043)

This commit is contained in:
ichigo-gyuunyuu 2021-07-21 01:03:15 +05:30 committed by GitHub
parent 9e640fa4d9
commit 0064b446a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 150 additions and 45 deletions

View file

@ -7,6 +7,9 @@ M.config = function()
exe = "prettier",
args = {},
},
lsp = {
path = DATA_PATH .. "/lspinstall/css/vscode-css/css-language-features/server/dist/node/cssServerMain.js",
},
}
end
@ -57,7 +60,7 @@ M.lsp = function()
require("lspconfig").cssls.setup {
cmd = {
"node",
DATA_PATH .. "/lspinstall/css/vscode-css/css-language-features/server/dist/node/cssServerMain.js",
O.lang.css.lsp.path,
"--stdio",
},
on_attach = require("lsp").common_on_attach,