22 lines
664 B
Lua
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" },
|
|
},
|
|
},
|
|
},
|
|
}
|