🔧 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({ lspconfig.rust_analyzer.setup({
settings = { settings = {
["rust-analyzer"] = { ["rust-analyzer"] = {
procMacro = { -- procMacro = {
ignored = { -- ignored = {
leptos_macro = { -- leptos_macro = {
"server", -- "server",
}, -- },
}, -- },
}, -- },
rustfmt = { -- rustfmt = {
overrideCommand = { -- overrideCommand = {
"leptosfmt", -- "leptosfmt",
"--stdin", -- "--stdin",
"--rustfmt", -- "--rustfmt",
}, -- },
edition = { "2021" }, -- edition = { "2021" },
-- },
cargo = {
allFeatures = true,
}, },
}, },
}, },