all repos — dotfiles @ 00c0f24d1ad4e8df95f14a17ad1a3166ad3a088a

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