mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-04 18:14:40 +02:00
Gopls fixed. Root dir was causing problem (#289)
This commit is contained in:
parent
8d34992077
commit
eb12e64058
1 changed files with 3 additions and 0 deletions
|
@ -1,4 +1,7 @@
|
|||
require'lspconfig'.gopls.setup{
|
||||
cmd = {DATA_PATH .. "/lspinstall/go/gopls"},
|
||||
settings = {gopls = {analyses = {unusedparams = true}, staticcheck = true}},
|
||||
root_dir = require'lspconfig'.util.root_pattern(".git","go.mod","."),
|
||||
init_options = {usePlaceholders = true, completeUnimported = true},
|
||||
on_attach = require'lsp'.common_on_attach
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue