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
|
@ -7,6 +7,9 @@ M.config = function()
|
|||
args = { "fmt" },
|
||||
stdin = false,
|
||||
},
|
||||
lsp = {
|
||||
path = "zls",
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -41,6 +44,7 @@ M.lsp = function()
|
|||
-- Further custom install zls in
|
||||
-- https://github.com/zigtools/zls/wiki/Downloading-and-Building-ZLS
|
||||
require("lspconfig").zls.setup {
|
||||
cmd = { O.lang.zig.lsp.path },
|
||||
root_dir = require("lspconfig").util.root_pattern(".git", "build.zig", "zls.json"),
|
||||
on_attach = require("lsp").common_on_attach,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue