Files
ndots/modules/home-manager/nvim/nvim/lsp/gopls.lua
T
2026-07-12 15:25:55 -03:00

29 lines
424 B
Lua

return {
cmd = { 'gopls' },
filetypes = {
'go',
'gomod',
'gowork',
'gotmpl',
'gosum'
},
root_markers = {
'go.mod',
'go.work',
'.git'
},
settings = {
gopls = {
gofumpt = true,
hints = {
assignVariableTypes = true,
compositeLiteralFields = true,
compositeLiteralTypes = true,
functionTypeParameters = true,
parameterNames = true,
rangeVariableTypes = true,
},
}
}
}