adds nvim-lint plugin with necessary packages to dev machines

This commit is contained in:
Dennis 2025-06-02 10:29:07 +02:00
parent e4ee753899
commit 23619e3b6b
4 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,21 @@
return {
"mfussenegger/nvim-lint",
config = function()
local lint = require("lint")
lint.linters_by_ft = {
javascript = { "eslint_d" },
javascriptreact = { "eslint_d" },
typescript = { "eslint_d" },
typescriptreact = { "eslint_d" },
sh = { "shellcheck" },
nix = { "nix" },
}
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
callback = function()
require("lint").try_lint()
end,
})
end,
}