nvim/lua/lsp/go.lua (view raw)
1 2 3 4 5 6 7 8 9 10 11 12
require('lspconfig').gopls.setup { filetypes = { 'go', 'gomod' }, gopls = { experimentalPostfixCompletions = true, analyses = { unusedparams = true, shadow = true, }, staticcheck = true, }, on_attach = require('maps').on_attach, }