From 42a076b8a8c5964fd9f27ae7778c41fa12eb7f4b Mon Sep 17 00:00:00 2001 From: Andy Teijelo Date: Sun, 18 Jun 2023 12:59:41 -0400 Subject: [PATCH] Adding clippy --- lua/plugins/lsp.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 78dee4b..1b35ee3 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -26,6 +26,15 @@ return { }, }, }, + rust_analyzer = { + settings = { + ["rust-analyzer"] = { + checkOnSave = { + command = "clippy", + }, + }, + } + }, }, }, },