Update 2025-02-28

Update 2025-02-14

Update 2025-02-16

Update 2025-02-21

Update 2025-02-23

Update 2025-02-25

Update 2025-02-27

Update 2025-02-28
This commit is contained in:
2025-02-07 19:47:38 +02:00
parent 464e342e58
commit e0f12a9ce3
36 changed files with 487 additions and 331 deletions

28
lua/plugins/lint.lua Normal file
View File

@@ -0,0 +1,28 @@
local js = { "biomejs" }
return {
"mfussenegger/nvim-lint",
opts = {
events = { "InsertLeave", "BufWritePost", "BufReadPost", "InsertEnter" },
linters_by_ft = {
javascript = js,
javascriptreact = js,
typescript = js,
typescriptreact = js,
python = { "mypy" },
htmldjango = { "djlint" },
lua = { "selene" },
cmake = { "cmakelint" },
["*"] = { "codespell", "typos" },
},
},
config = function(_, opts)
local lint = require("lint")
lint.linters_by_ft = opts.linters_by_ft
vim.api.nvim_create_autocmd(opts.events, {
group = vim.api.nvim_create_augroup("nvim-lint", { clear = true }),
callback = function()
lint.try_lint()
end,
})
end,
}