This commit is contained in:
Miguel Palhas
2025-09-16 11:51:43 +01:00
parent 7a96658bb5
commit 5d08eeb330
+1 -6
View File
@@ -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