From 5f74b469bcb71269e2ed40eda649af1ca51063a2 Mon Sep 17 00:00:00 2001 From: William Eliasson <39637161+williameliasson-dev@users.noreply.github.com> Date: Fri, 22 Mar 2024 19:29:25 +0100 Subject: [PATCH] Added SSR feature (#83) without this rust-analyzer won't give suggestions for anything in the ssr feature due to the optional flag being true. --- src/getting_started/leptos_dx.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/getting_started/leptos_dx.md b/src/getting_started/leptos_dx.md index 4d85237..6500c22 100644 --- a/src/getting_started/leptos_dx.md +++ b/src/getting_started/leptos_dx.md @@ -38,6 +38,18 @@ VSCode `settings.json`: } ``` +VSCode with cargo-leptos `settings.json`: +```json +"rust-analyzer.procMacro.ignored": { + "leptos_macro": [ + // optional: + // "component", + "server" + ], +}, +"rust-analyzer.cargo.features": ["ssr"] +``` + neovim with lspconfig: ```lua