chore(nvim): gopls watch files

This commit is contained in:
Rob Watson 2024-06-26 20:50:11 +02:00
parent fa12cedb72
commit a7d7ee0e0f
1 changed files with 13 additions and 2 deletions

View File

@ -54,7 +54,7 @@ nvim_lsp.gopls.setup({
settings = {
gopls = {
staticcheck = true,
-- Disalbing linksInHover may not be working as expected:
-- Disabling linksInHover may not be working as expected:
linksInHover = false,
usePlaceholders = true,
experimentalPostfixCompletions = true,
@ -65,12 +65,23 @@ nvim_lsp.gopls.setup({
unusedresult = true,
nilness = true,
},
buildFlags = { "-tags=acceptance" }
},
},
init_options = {
usePlaceholders = true,
},
capabilities = capabilities,
capabilities = vim.tbl_extend(
"error",
capabilities,
{
workspace = {
didChangeWatchedFiles = {
dynamicRegistration = true
}
}
}
),
on_attach = on_attach,
})