From 02e5491152960e6bd0047342e59ff881fa160479 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Wed, 13 Nov 2024 17:19:38 -0800 Subject: [PATCH] r-a stuff --- rust-analyzer.json | 13 +++++++++++++ rust-analyzer.toml | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 rust-analyzer.json diff --git a/rust-analyzer.json b/rust-analyzer.json new file mode 100644 index 0000000..6e3e046 --- /dev/null +++ b/rust-analyzer.json @@ -0,0 +1,13 @@ +{ + "rustfmt": { + "overrideCommand": ["leptosfmt", "--stdin", "--rustfmt"] + }, + "procMacro": { + "ignored": { + "leptos_macro": ["component"] + } + }, + "diagnostic": { + "disabled": ["macro-error"] + } +} diff --git a/rust-analyzer.toml b/rust-analyzer.toml index 9eab123..bcfa0dc 100644 --- a/rust-analyzer.toml +++ b/rust-analyzer.toml @@ -1,2 +1,8 @@ [rustfmt] overrideCommand = ["leptosfmt", "--stdin", "--rustfmt"] + +[procMacro.ignored] +leptos_macro = ["component"] + +[diagnostic] +disabled = ["macro-error"]