Files
nvim/lsp/rust_analyzer.lua
T
2026-11-12 23:58:22 +01:00

22 lines
664 B
Lua

-- bacon runs the checker (plugins/lint.lua), so rust-analyzer keeps its default `cargo check`.
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" },
},
},
},
}