use 'cargo clippy' for rust-analyzer semantic analysis and linting

This commit is contained in:
Youwen Wu 2024-04-21 19:00:55 -07:00
parent 85cb19f82c
commit 005e14e6b6
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -21,6 +21,15 @@ return {
["textDocument/publishDiagnostics"] = function(...) end,
},
},
rust_analyzer = {
settings = {
["rust-analyzer"] = {
checkOnSave = {
command = "clippy",
},
},
},
},
},
diagnostics = {
underline = true,