all repos — dotfiles @ 37f5a15a764b8baf8ba8d9b2b8ba767624b1a154

my *nix dotfiles

nvim/lua/lsp/go.lua (view raw)

 1require('lspconfig').gopls.setup {
 2  filetypes = { 'go', 'gomod' },
 3  gopls = {
 4    experimentalPostfixCompletions = true,
 5    analyses = {
 6      unusedparams = true,
 7      shadow = true,
 8    },
 9    staticcheck = true,
10    buildFlags = {"-tags=cgo"},
11  },
12  on_attach = require('maps').on_attach,
13}