[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,
|
||||
capabilities = cmp_capabilities,
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
['rust-analyzer'] = {
|
||||
cargo = {
|
||||
buildScripts = {
|
||||
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