diff --git a/lua/configs/lspconfig.lua b/lua/configs/lspconfig.lua index 4ce5a98..6f662a7 100644 --- a/lua/configs/lspconfig.lua +++ b/lua/configs/lspconfig.lua @@ -63,22 +63,17 @@ M.rustacean = { check = { command = "clippy" }, checkOnSave = true, cargo = { - allFeatures = true, targetDir = true, extraArgs = { "--edition=2024" }, }, diagnostics = { - disabled = { "inactive-code" }, + disabled = { "inactive-code", "macro-error" }, }, }, }, on_attach = function(client, bufnr) M.on_attach(client, bufnr) - map("n", "re", function() - vim.cmd.RustLsp "expandMacro" - end) - local function opts(desc) return { buffer = bufnr, desc = "LSP " .. desc } end