mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-21 11:14:42 +02:00
[Feature] Allow for custom path to a language server binary (#1043)
This commit is contained in:
parent
9e640fa4d9
commit
0064b446a0
30 changed files with 150 additions and 45 deletions
|
@ -16,6 +16,9 @@ M.config = function()
|
|||
stdin = false,
|
||||
},
|
||||
linters = { "shellcheck" },
|
||||
lsp = {
|
||||
path = DATA_PATH .. "/lspinstall/bash/node_modules/.bin/bash-language-server",
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -47,7 +50,7 @@ M.lsp = function()
|
|||
if not require("lv-utils").check_lsp_client_active "bashls" then
|
||||
-- npm i -g bash-language-server
|
||||
require("lspconfig").bashls.setup {
|
||||
cmd = { DATA_PATH .. "/lspinstall/bash/node_modules/.bin/bash-language-server", "start" },
|
||||
cmd = { O.lang.sh.lsp.path, "start" },
|
||||
on_attach = require("lsp").common_on_attach,
|
||||
filetypes = { "sh", "zsh" },
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue