better code actions

This commit is contained in:
Mathias Schneider
2026-09-10 13:36:39 +02:00
parent 0e2d4030bd
commit fbf1442dbe
4 changed files with 110 additions and 11 deletions
+1 -7
View File
@@ -2,12 +2,6 @@ return {
"mfussenegger/nvim-lint",
config = function()
require("lint").linters_by_ft = {
javascript = { "eslint_d" },
javascriptreact = { "eslint_d" },
typescript = { "eslint_d" },
typescriptreact = { "eslint_d" },
vue = { "eslint_d" },
python = { "ruff" },
-- lua = { "selene" }, -- Disabled: lua_ls provides diagnostics
sh = { "shellcheck" },
bash = { "shellcheck" },
@@ -17,7 +11,7 @@ return {
rust = { "clippy" },
}
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
vim.api.nvim_create_autocmd({ "BufWritePost", "BufEnter", "InsertLeave" }, {
callback = function()
require("lint").try_lint()
end,