Files
nvim/lua/lsp/gopls.lua
T
warg 68bf1acad0 Revert "fix(lsp): disable php formatting workaround"
This reverts commit 7ce88bb7c1d904a628634c0d96ef05100866f50e.
2024-02-27 16:49:03 +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,
},
},
},
}