chore(nvim): re-enable rust-analyzer proc macro support

This commit is contained in:
Rob Watson 2024-11-10 14:47:00 +01:00
parent 751f0376bc
commit 7a8f5f9073
1 changed files with 14 additions and 18 deletions

View File

@ -66,23 +66,19 @@ nvim_lsp.gopls.setup({
unusedresult = true, unusedresult = true,
nilness = true, nilness = true,
}, },
buildFlags = { "-tags=acceptance" } buildFlags = { "-tags=acceptance" },
}, },
}, },
init_options = { init_options = {
usePlaceholders = true, usePlaceholders = true,
}, },
capabilities = vim.tbl_extend( capabilities = vim.tbl_extend("error", capabilities, {
"error", workspace = {
capabilities, didChangeWatchedFiles = {
{ dynamicRegistration = true,
workspace = { },
didChangeWatchedFiles = { },
dynamicRegistration = true }),
}
}
}
),
on_attach = on_attach, on_attach = on_attach,
}) })
@ -103,12 +99,12 @@ nvim_lsp.rust_analyzer.setup({
enable = true, enable = true,
}, },
}, },
procMacro = { -- procMacro = {
enable = false, -- enable = false,
}, -- },
diagnostics = { -- diagnostics = {
disabled = { "unresolved-proc-macro" }, -- disabled = { "unresolved-proc-macro" },
}, -- },
}, },
}, },
}) })