From d42df84e958d2540f09dfa0168d9023969222371 Mon Sep 17 00:00:00 2001
From: Jan Hensel <ja_he@uni-bremen.de>
Date: Wed, 19 Jun 2024 19:30:30 +0200
Subject: [PATCH] nvim: Configure rust-analyzer

---
 .config/nvim/lua/ztf/lsp.lua | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/.config/nvim/lua/ztf/lsp.lua b/.config/nvim/lua/ztf/lsp.lua
index b335c1c..c5f0637 100644
--- a/.config/nvim/lua/ztf/lsp.lua
+++ b/.config/nvim/lua/ztf/lsp.lua
@@ -132,3 +132,20 @@ if not configs.muddles then
   }
 end
 lspconfig.muddles.setup {}
+lspconfig.rust_analyzer.setup {
+  -- Other Configs ...
+  settings = {
+    ["rust-analyzer"] = {
+      -- Other Settings ...
+      procMacro = {
+        ignored = {
+          leptos_macro = {
+            -- optional: --
+            -- "component",
+            "server",
+          },
+        },
+      },
+    },
+  }
+}
-- 
GitLab