astronvim-config/lsp/config/rust_analyzer.lua

17 lines
321 B
Lua
Raw Normal View History

2023-02-23 23:25:59 +01:00
return {
settings = {
["rust-analyzer"] = {
checkOnSave = {
command = "clippy",
extraArgs = {
"--",
"-W", "clippy::pedantic",
"-W", "clippy::nursery",
2023-09-18 13:19:58 +02:00
"-W", "clippy::unwrap_used",
"-W", "clippy::expect_used",
2023-02-23 23:25:59 +01:00
},
},
},
},
}