mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
19 lines
442 B
Lua
19 lines
442 B
Lua
-- Golang
|
|
--[[ Installation
|
|
go install golang.org/x/tools/gopls@latest
|
|
brew install gopls
|
|
--]]
|
|
return {
|
|
cmd = { "gopls" },
|
|
filetypes = { "go", "gomod", "gowork", "gotmpl" },
|
|
root_markers = { "go.work", "go.mod", ".git" },
|
|
settings = {
|
|
gopls = {
|
|
analyses = {
|
|
unusedparams = true,
|
|
},
|
|
staticcheck = true,
|
|
-- semanticTokens = true, -- go's semantic token highlight is not accurate so far
|
|
},
|
|
},
|
|
}
|