mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-22 11:44:47 +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
|
@ -11,6 +11,9 @@ M.config = function()
|
|||
"golangcilint",
|
||||
"revive",
|
||||
},
|
||||
lsp = {
|
||||
path = DATA_PATH .. "/lspinstall/go/gopls",
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -40,7 +43,7 @@ end
|
|||
M.lsp = function()
|
||||
if not require("lv-utils").check_lsp_client_active "gopls" then
|
||||
require("lspconfig").gopls.setup {
|
||||
cmd = { DATA_PATH .. "/lspinstall/go/gopls" },
|
||||
cmd = { O.lang.go.lsp.path },
|
||||
settings = { gopls = { analyses = { unusedparams = true }, staticcheck = true } },
|
||||
root_dir = require("lspconfig").util.root_pattern(".git", "go.mod"),
|
||||
init_options = { usePlaceholders = true, completeUnimported = true },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue