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"]