From f363c1d9301ea30fee57cdbb4b71922407e59255 Mon Sep 17 00:00:00 2001 From: kalmenn Date: Sat, 30 Dec 2023 12:18:49 +0100 Subject: [PATCH] lsp: rust-tools: enable clippy --- lua/plugins/lsp.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 516ee54..76167e6 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -119,6 +119,13 @@ return { vim.keymap.set("n", "a", rt.code_action_group.code_action_group, { buffer = bufnr }) end, capabilities = capabilities, + settings = { + ["rust-analyzer"] = { + check = { + command = "clippy", + }, + }, + }, }, }); end,