feat(nvim): add go configurations
This commit is contained in:
parent
a64c619cea
commit
5cf651c06c
4 changed files with 18 additions and 0 deletions
14
modules/home-manager/cli/neovim/files/lsp/go.lua
Normal file
14
modules/home-manager/cli/neovim/files/lsp/go.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
return {
|
||||
cmd = { "gopls" },
|
||||
filetypes = { "go" },
|
||||
root_markers = { "go.mod", ".git" },
|
||||
settings = {
|
||||
gopls = {
|
||||
analyses = {
|
||||
unusedparams = true,
|
||||
},
|
||||
staticcheck = true,
|
||||
gofumpt = true,
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue