feat: migrate old config

This commit is contained in:
johannes committed 2026-11-12 23:58:22 +01:00
1 parent 1a2ce09da2
commit 92c21d8d6a
31 files changed
+918 -38

No files matched your search

+1 -4
View File
@@ -6,7 +6,7 @@ return {
event = { "BufReadPost", "BufNewFile", "BufWritePost" },
config = function()
local lint = require("lint")
lint.linters_by_ft = { go = { "golangcilint" } }
lint.linters_by_ft = { go = { "golangcilint" }, rust = { "bacon" }, php = { "mago_lint" } }
vim.api.nvim_create_autocmd({ "BufReadPost", "BufWritePost", "InsertLeave" }, {
group = vim.api.nvim_create_augroup("plugins.lint", { clear = true }),
@@ -15,9 +15,6 @@ return {
return
end
lint.try_lint()
if vim.bo[ev.buf].filetype == "php" and vim.fs.root(ev.buf, "phpstan.neon") then
lint.try_lint("phpstan")
end
end,
})
end,