From 2cfdfb07bcdbf9845d4e7518ae9523f70cd51f7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= Date: Tue, 26 Jul 2022 13:05:52 +0200 Subject: [PATCH] feat(neovim): use clippy for rust-analyzer checks --- home/editors/neovim/lsp/lsp.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/editors/neovim/lsp/lsp.lua b/home/editors/neovim/lsp/lsp.lua index 45847eb..9652440 100644 --- a/home/editors/neovim/lsp/lsp.lua +++ b/home/editors/neovim/lsp/lsp.lua @@ -70,6 +70,11 @@ end config.rust_analyzer.setup{ capabilities = capabilities, root_dir = config.util.root_pattern("Cargo.toml", "rust-project.json", ".git"), + settings = { + ["rust-analyzer"] = { + checkOnSave = { command = "clippy" }, + }, + }, } config.omnisharp.setup{