use 'cargo clippy' for rust-analyzer semantic analysis and linting
This commit is contained in:
parent
85cb19f82c
commit
005e14e6b6
1 changed files with 9 additions and 0 deletions
|
@ -21,6 +21,15 @@ return {
|
|||
["textDocument/publishDiagnostics"] = function(...) end,
|
||||
},
|
||||
},
|
||||
rust_analyzer = {
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
checkOnSave = {
|
||||
command = "clippy",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
diagnostics = {
|
||||
underline = true,
|
||||
|
|
Loading…
Reference in a new issue