Add codespell and lint

This commit is contained in:
2024-12-20 11:12:00 +01:00
parent 7596d1e92f
commit 5ff52c78b1
3 changed files with 43 additions and 27 deletions

15
nvim/lua/plugins/lint.lua Normal file
View File

@@ -0,0 +1,15 @@
return {
"mfussenegger/nvim-lint",
event = { "BufReadPre", "BufNewFile" },
config = function()
local lint = require("lint")
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost" }, {
group = vim.api.nvim_create_augroup("RunLinter", { clear = true }),
callback = function()
lint.try_lint("codespell")
end,
})
end,
}