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 + }, }, }, }