From 407d599dea07cba8c3b71519acd68478e50b55d1 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Mon, 12 Aug 2024 02:21:38 -0700 Subject: [PATCH] :wrench: Configured rust-analyzer to allow all macros --- .config/nvim/after/plugin/lsp.lua | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua index 99ba2459..725e6bda 100644 --- a/.config/nvim/after/plugin/lsp.lua +++ b/.config/nvim/after/plugin/lsp.lua @@ -83,20 +83,23 @@ require("mason-lspconfig").setup_handlers({ lspconfig.rust_analyzer.setup({ settings = { ["rust-analyzer"] = { - procMacro = { - ignored = { - leptos_macro = { - "server", - }, - }, - }, - rustfmt = { - overrideCommand = { - "leptosfmt", - "--stdin", - "--rustfmt", - }, - edition = { "2021" }, + -- procMacro = { + -- ignored = { + -- leptos_macro = { + -- "server", + -- }, + -- }, + -- }, + -- rustfmt = { + -- overrideCommand = { + -- "leptosfmt", + -- "--stdin", + -- "--rustfmt", + -- }, + -- edition = { "2021" }, + -- }, + cargo = { + allFeatures = true, }, }, },