fix(nvim-lint): do not lint on any type of buffer

This commit is contained in:
Oliver Ladner 2025-12-16 16:01:01 +01:00
commit a8659027b6

View file

@ -40,8 +40,9 @@ return {
lua = { "woke" },
ansible = { "woke" },
markdown = { "woke", "proselint", "write_good" },
text = { "woke", "proselint", "write_good" },
sh = { "woke" },
text = { "gitleaks", "proselint", "write_good" },
sh = { "gitleaks", "woke" },
bash = { "gitleaks" },
go = { "golangcilint" },
}
@ -50,14 +51,14 @@ return {
vim.api.nvim_create_autocmd({ "BufEnter", "BufReadPost", "BufWritePost", "InsertLeave" }, {
group = lint_augroup,
callback = function()
lint.try_lint() -- linters_by_ft
lint.try_lint("gitleaks") -- on all ft
lint.try_lint() -- linters_by_ft
-- lint.try_lint("gitleaks") -- on all ft
end,
})
vim.keymap.set("n", "<leader>l", function()
lint.try_lint() -- linters_by_ft
lint.try_lint("gitleaks") -- on all ft
lint.try_lint() -- linters_by_ft
-- lint.try_lint("gitleaks") -- on all ft
end, { desc = "Lint current file" })
end,
}