Files
nvim/lua/lsp/gopls.lua
T
2024-01-08 11:18:13 +01:00

25 lines
530 B
Lua

-- spec: https://rust-analyzer.github.io/manual.html#configuration
return {
enabled = true,
lspconfig = {
filetypes = {
"go",
"gomod",
"gowork",
"gotmpl",
},
cmd = { "gopls", },
single_file_support = true,
settings = {
gopls = {
analyses = {
unusedparams = true,
},
staticcheck = true,
gofumpt = true,
},
},
},
}