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 = { default_settings = {
["rust-analyzer"] = { ["rust-analyzer"] = {
cargo = { cargo = {
allFeatures = true, features = "all",
loadOutDirsFromCheck = true, loadOutDirsFromCheck = true,
runBuildScripts = true, runBuildScripts = true,
}, },
checkOnSave = { check = {
allFeatures = true,
allTargets = true,
command = "clippy", command = "clippy",
features = "all",
}, },
procMacro = { checkOnSave = true,
enable = true, rustfmt = {
rangeFormatting = {
enable = true,
},
}, },
}, },
}, },