Reworked config using chezmoi

This commit is contained in:
2026-01-13 15:01:43 +01:00
parent 2b6d3acf40
commit 7f21933475
64 changed files with 177 additions and 285 deletions

View File

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