mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-22 19:55:10 +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
|
@ -7,6 +7,9 @@ M.config = function()
|
|||
args = { "--stdin-filepath", vim.api.nvim_buf_get_name(0), "--single-quote" },
|
||||
stdin = true,
|
||||
},
|
||||
lsp = {
|
||||
path = DATA_PATH .. "/lspinstall/yaml/node_modules/.bin/yaml-language-server",
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -38,7 +41,7 @@ M.lsp = function()
|
|||
|
||||
-- npm install -g yaml-language-server
|
||||
require("lspconfig").yamlls.setup {
|
||||
cmd = { DATA_PATH .. "/lspinstall/yaml/node_modules/.bin/yaml-language-server", "--stdio" },
|
||||
cmd = { O.lang.yaml.lsp.path, "--stdio" },
|
||||
on_attach = require("lsp").common_on_attach,
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue