🔧 Configured rust-analyzer to allow all macros

This commit is contained in:
z3rOR0ne 2024-08-12 02:21:38 -07:00
parent f4ed18c19e
commit 407d599dea

View file

@ -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,
},
},
},