diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 83dfd7a..fdbdc87 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -21,6 +21,15 @@ return { ["textDocument/publishDiagnostics"] = function(...) end, }, }, + rust_analyzer = { + settings = { + ["rust-analyzer"] = { + checkOnSave = { + command = "clippy", + }, + }, + }, + }, }, diagnostics = { underline = true,