refactor(nvim): improve rust analyzer settings

This commit is contained in:
Price Hiller 2024-11-08 00:55:25 -06:00
parent 62f92944dc
commit d54cd8782c
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -110,17 +110,19 @@ return {
default_settings = {
["rust-analyzer"] = {
cargo = {
allFeatures = true,
features = "all",
loadOutDirsFromCheck = true,
runBuildScripts = true,
},
checkOnSave = {
allFeatures = true,
allTargets = true,
check = {
command = "clippy",
features = "all",
},
procMacro = {
enable = true,
checkOnSave = true,
rustfmt = {
rangeFormatting = {
enable = true,
},
},
},
},