25 lines
496 B
Lua
25 lines
496 B
Lua
return {
|
|
cmd = { "rust-analyzer" },
|
|
root_markers = { "Cargo.toml" },
|
|
filetypes = { "rust" },
|
|
settings = {
|
|
["rust-analyzer"] = {
|
|
cargo = {
|
|
allFeatures = true,
|
|
loadOutDirsFromCheck = true,
|
|
runBuildScripts = true,
|
|
},
|
|
-- Add clippy lints for Rust
|
|
checkOnSave = true,
|
|
procMacro = {
|
|
enable = true,
|
|
ignored = {
|
|
["async-trait"] = { "async_trait" },
|
|
["napi-derive"] = { "napi" },
|
|
["async-recursion"] = { "async_recursion" },
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|