chore(nvim): gopls watch files
This commit is contained in:
parent
fa12cedb72
commit
a7d7ee0e0f
|
@ -54,7 +54,7 @@ nvim_lsp.gopls.setup({
|
||||||
settings = {
|
settings = {
|
||||||
gopls = {
|
gopls = {
|
||||||
staticcheck = true,
|
staticcheck = true,
|
||||||
-- Disalbing linksInHover may not be working as expected:
|
-- Disabling linksInHover may not be working as expected:
|
||||||
linksInHover = false,
|
linksInHover = false,
|
||||||
usePlaceholders = true,
|
usePlaceholders = true,
|
||||||
experimentalPostfixCompletions = true,
|
experimentalPostfixCompletions = true,
|
||||||
|
@ -65,12 +65,23 @@ nvim_lsp.gopls.setup({
|
||||||
unusedresult = true,
|
unusedresult = true,
|
||||||
nilness = true,
|
nilness = true,
|
||||||
},
|
},
|
||||||
|
buildFlags = { "-tags=acceptance" }
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
init_options = {
|
init_options = {
|
||||||
usePlaceholders = true,
|
usePlaceholders = true,
|
||||||
},
|
},
|
||||||
capabilities = capabilities,
|
capabilities = vim.tbl_extend(
|
||||||
|
"error",
|
||||||
|
capabilities,
|
||||||
|
{
|
||||||
|
workspace = {
|
||||||
|
didChangeWatchedFiles = {
|
||||||
|
dynamicRegistration = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
),
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue