From 7a8f5f9073938c92266c02b720415465176cac49 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Sun, 10 Nov 2024 14:47:00 +0100 Subject: [PATCH] chore(nvim): re-enable rust-analyzer proc macro support --- vim/lua/lsp_config.lua | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/vim/lua/lsp_config.lua b/vim/lua/lsp_config.lua index b239a16..21a03a0 100644 --- a/vim/lua/lsp_config.lua +++ b/vim/lua/lsp_config.lua @@ -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, - { - workspace = { - didChangeWatchedFiles = { - dynamicRegistration = true - } - } - } - ), + capabilities = vim.tbl_extend("error", capabilities, { + workspace = { + didChangeWatchedFiles = { + 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" }, + -- }, }, }, })