all repos — dotfiles @ d50e42615b05e5b3d1263b257bee841e2043c822

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