mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-21 03:04:31 +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
|
@ -25,6 +25,9 @@ M.config = function()
|
|||
"pylint",
|
||||
"mypy",
|
||||
},
|
||||
lsp = {
|
||||
path = DATA_PATH .. "/lspinstall/python/node_modules/.bin/pyright-langserver",
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -58,7 +61,7 @@ M.lsp = function()
|
|||
-- npm i -g pyright
|
||||
require("lspconfig").pyright.setup {
|
||||
cmd = {
|
||||
DATA_PATH .. "/lspinstall/python/node_modules/.bin/pyright-langserver",
|
||||
O.lang.python.lsp.path,
|
||||
"--stdio",
|
||||
},
|
||||
on_attach = require("lsp").common_on_attach,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue