refactor(nvim): improve rust analyzer settings
This commit is contained in:
parent
62f92944dc
commit
d54cd8782c
@ -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,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user