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

@ -44,8 +44,10 @@
vscode-langservers-extracted
lua-language-server
prettierd
eslint_d
atuin
nil
shellcheck
];
# Homebrew

View file

@ -42,9 +42,11 @@
vscode-langservers-extracted
lua-language-server
prettierd
eslint_d
atuin
nil
nurl
shellcheck
];
# Homebrew

View file

@ -11,6 +11,7 @@
"lualine.nvim": { "branch": "master", "commit": "15884cee63a8c205334ab13ab1c891cd4d27101a" },
"mini.icons": { "branch": "main", "commit": "397ed3807e96b59709ef3292f0a3e253d5c1dc0a" },
"mini.pairs": { "branch": "main", "commit": "69864a2efb36c030877421634487fd90db1e4298" },
"nvim-lint": { "branch": "master", "commit": "b47cbb249351873e3a571751c3fb66ed6369852f" },
"nvim-surround": { "branch": "main", "commit": "0e62500b98f4513feaaf7425c135472457ea5b7d" },
"nvim-treesitter": { "branch": "master", "commit": "28d480e0624b259095e56f353ec911f9f2a0f404" },
"nvim-web-devicons": { "branch": "master", "commit": "2c2b4eafce6cdd0cb165036faa17396eff18f847" },

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,
}