From a4e4cea9f220bcc3636576792d8791743e9de648 Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Tue, 22 Mar 2022 12:14:50 +0100 Subject: [PATCH] make rust-analyzer run clippy --- .config/nvim/lua/pluginconf/lspconf.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/pluginconf/lspconf.lua b/.config/nvim/lua/pluginconf/lspconf.lua index 64c0e28..611f642 100644 --- a/.config/nvim/lua/pluginconf/lspconf.lua +++ b/.config/nvim/lua/pluginconf/lspconf.lua @@ -15,7 +15,16 @@ lspc.html.setup { capabilities = caps } lspc.jsonls.setup { capabilities = caps } lspc.ocamllsp.setup { capabilities = caps } lspc.prosemd_lsp.setup { capabilities = caps } -lspc.rust_analyzer.setup { capabilities = caps } +lspc.rust_analyzer.setup { + capabilities = caps, + settings = { + ["rust-analyzer"] = { + checkOnSave = { + command = "clippy", + }, + }, + }, +} lspc.sumneko_lua.setup { capabilities = caps, settings = {