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,
nilness = true,
},
buildFlags = { "-tags=acceptance" }
buildFlags = { "-tags=acceptance" },
},
},
init_options = {
usePlaceholders = true,
},
capabilities = vim.tbl_extend(
"error",
capabilities,
{
capabilities = vim.tbl_extend("error", capabilities, {
workspace = {
didChangeWatchedFiles = {
dynamicRegistration = true
}
}
}
),
dynamicRegistration = true,
},
},
}),
on_attach = on_attach,
})
@ -103,12 +99,12 @@ nvim_lsp.rust_analyzer.setup({
enable = true,
},
},
procMacro = {
enable = false,
},
diagnostics = {
disabled = { "unresolved-proc-macro" },
},
-- procMacro = {
-- enable = false,
-- },
-- diagnostics = {
-- disabled = { "unresolved-proc-macro" },
-- },
},
},
})