Open RazaGR opened 1 year ago
I'm also using LazyNvim. I was able to initialize this plugin by using the following configuration:
-- nvim-lspconfig.lua
return {
"neovim/nvim-lspconfig",
opts = {
servers = {
golangci_lint_ls = {
cmd = { "golangci-lint-langserver" },
root_dir = require("lspconfig").util.root_pattern(".git", "go.mod"),
init_options = {
command = { "golangci-lint", "run", "--enable-all", "--disable", "depguard", "--out-format", "json" },
},
},
},
},
}
There's probably a nicer way to handle this, but it seems to be working well for me.
Hope that helps.
I am seeing this error
my config
go env
neovim
gopls