From cc05f03ddf46635a24e55946e616eff7bd1fbf46 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Mon, 4 Nov 2024 12:16:49 +0530 Subject: [PATCH] nvim: lua/lsp-utils: Disable proc macros for rust-analyzer --- nvim/.config/nvim/lua/lsp-utils.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/nvim/.config/nvim/lua/lsp-utils.lua b/nvim/.config/nvim/lua/lsp-utils.lua index 3e9f9b5..69e53c1 100644 --- a/nvim/.config/nvim/lua/lsp-utils.lua +++ b/nvim/.config/nvim/lua/lsp-utils.lua @@ -265,12 +265,19 @@ function M.ra_config() root_dir = root_directory, settings = { ["rust-analyzer"] = { - procMacro = { - enable = true - }, checkOnSave = { command = "clippy" }, + diagnostics = { + -- https://rust-analyzer.github.io/manual.html#diagnostics + disabled = { + "macro-def-error", + "macro-error" + }, + }, + procMacro = { + enable = false + }, }, }, }