mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-28 13:58:12 +02:00
feat(go): add linting with golangci-lint
This commit is contained in:
parent
25abbf546d
commit
1f06bff599
1 changed files with 16 additions and 0 deletions
|
@ -97,6 +97,22 @@ return {
|
|||
})
|
||||
end,
|
||||
},
|
||||
-- Add linting
|
||||
{
|
||||
"mfussenegger/nvim-lint",
|
||||
optional = true,
|
||||
dependencies = {
|
||||
{
|
||||
"mason-org/mason.nvim",
|
||||
opts = { ensure_installed = { "golangci-lint" } },
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
linters_by_ft = {
|
||||
go = { "golangcilint" },
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
optional = true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue