mirror of
https://github.com/harivansh-afk/nvim.git
synced 2026-04-15 19:05:17 +00:00
28 lines
856 B
Lua
28 lines
856 B
Lua
-- Rust Analyzer configuration with clippy integration
|
|
return {
|
|
settings = {
|
|
["rust-analyzer"] = {
|
|
checkOnSave = {
|
|
command = "clippy",
|
|
},
|
|
cargo = {
|
|
allFeatures = true,
|
|
},
|
|
procMacro = {
|
|
enable = true,
|
|
},
|
|
diagnostics = {
|
|
enable = true,
|
|
},
|
|
inlayHints = {
|
|
bindingModeHints = { enable = true },
|
|
chainingHints = { enable = true },
|
|
closingBraceHints = { enable = true },
|
|
closureReturnTypeHints = { enable = "always" },
|
|
lifetimeElisionHints = { enable = "always" },
|
|
parameterHints = { enable = true },
|
|
typeHints = { enable = true },
|
|
},
|
|
},
|
|
},
|
|
}
|