feat(nvim): add golangci-lint extra

This commit is contained in:
Sergio Laín 2023-12-26 17:24:48 +01:00
parent 2a67a3616e
commit 3a2f8fda2a
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -0,0 +1,17 @@
return {
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "golangcil-lint" })
end,
},
{
"mfussenegger/nvim-lint",
opts = function(_, opts)
opts.linters_by_ft.go = opts.linters_by_ft.go or {}
table.insert(opts.linters_by_ft.go, "golangcilint")
return opts
end,
},
}