From 6fa3768d6d5fe35430f348fee1aeae0f02328546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Hamal=20Dvo=C5=99=C3=A1k?= Date: Sat, 8 Mar 2025 17:17:10 +0100 Subject: [PATCH] Avoid real-time rust analyzer --- lua/config/lsp/rust_analyzer.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lua/config/lsp/rust_analyzer.lua b/lua/config/lsp/rust_analyzer.lua index 06fb603..6af765d 100644 --- a/lua/config/lsp/rust_analyzer.lua +++ b/lua/config/lsp/rust_analyzer.lua @@ -18,10 +18,15 @@ if next(config) then settings = { ["rust-analyzer"] = { checkOnSave = { - command = "clippy" + command = "clippy", + enable = true + }, + diagnostics = { + enable = false, }, check = { - command = "check" + command = "check", + extraArgs = {"--all-features"} }, }, },