local nvim_lsp = require ('lspconfig') nvim_lsp.gopls.setup{ cmd = {'gopls'}, filetypes = {"go", "gomod"}, settings = { gopls = { analyses = { unusedparams = true, }, staticcheck = true, }, }, }