feat(go): add linting with golangci-lint

This commit is contained in:
BahaaMohamed98 2025-08-03 18:31:02 +03:00
parent 25abbf546d
commit 1f06bff599
No known key found for this signature in database
GPG key ID: 7427A4ABCCFD30AB

View file

@ -97,6 +97,22 @@ return {
}) })
end, 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", "stevearc/conform.nvim",
optional = true, optional = true,