nvimdotfiles/after/plugin/lsp/lsp-go.lua

15 lines
221 B
Lua

local nvim_lsp = require('lspconfig')
nvim_lsp.gopls.setup {
cmd = { 'gopls' },
filetypes = { "go", "gomod" },
settings = {
gopls = {
analyses = {
unusedparams = true,
},
staticcheck = true,
},
},
}