Files
nvim/lsp/rust_analyzer.lua
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

22 lines
665 B
Lua

-- rust-analyzer runs the checker itself (`cargo check` on save); nvim-lint has no bacon linter.
return {
settings = {
["rust-analyzer"] = {
cargo = { allFeatures = true, buildScripts = { enable = true } },
checkOnSave = true,
diagnostics = { enable = true },
procMacro = {
enable = true,
ignored = {
["async-trait"] = { "async_trait" },
["napi-derive"] = { "napi" },
["async-recursion"] = { "async_recursion" },
},
},
files = {
excludeDirs = { ".direnv", ".git", ".github", ".gitlab", "bin", "node_modules", "target", "venv", ".venv" },
},
},
},
}