Files
johannesandClaude Sonnet 5.5 28cc9104c5 refactor(rust): take toolchain from devenv, drop bacon linter
Remove rustup and bacon from nix tools and the bacon linter mapping that
made nvim-lint throw on every Rust buffer. Keep cargo-nextest global for
neotest-rust.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 12:29:41 +01:00

26 lines
773 B
Lua

-- Only linters that don't run as an LSP.
return {
{
"mfussenegger/nvim-lint",
cond = vim.g.profile == "full",
event = { "BufReadPost", "BufNewFile", "BufWritePost" },
config = function()
local lint = require("lint")
lint.linters_by_ft = { go = { "golangcilint" } }
vim.api.nvim_create_autocmd({ "BufReadPost", "BufWritePost", "InsertLeave" }, {
group = vim.api.nvim_create_augroup("plugins.lint", { clear = true }),
callback = function(ev)
if vim.b[ev.buf].bigfile then
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,
},
}