[vim] Add some Clippy stuff to the checkOnSave block for rust-analyzer
This commit is contained in:
parent
acaf6425d5
commit
46249b979a
1 changed files with 17 additions and 1 deletions
|
@ -109,12 +109,28 @@ lspconfig.rust_analyzer.setup {
|
||||||
end,
|
end,
|
||||||
capabilities = cmp_capabilities,
|
capabilities = cmp_capabilities,
|
||||||
settings = {
|
settings = {
|
||||||
["rust-analyzer"] = {
|
['rust-analyzer'] = {
|
||||||
cargo = {
|
cargo = {
|
||||||
buildScripts = {
|
buildScripts = {
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
checkOnSave = {
|
||||||
|
command = 'clippy',
|
||||||
|
extraArgs = {
|
||||||
|
"--",
|
||||||
|
"--no-deps",
|
||||||
|
"-Dclippy::correctness",
|
||||||
|
"-Dclippy::complexity",
|
||||||
|
"-Wclippy::perf",
|
||||||
|
"-Wclippy::pedantic",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
imports = {
|
||||||
|
granularity = {
|
||||||
|
group = "crate",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue