all repos — dotfiles @ 012402daf5b4387a75bd99a5ccb02bbf6788fc9c

my *nix dotfiles

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,
}