🔧 Configured rust-analyzer to allow all macros
This commit is contained in:
parent
f4ed18c19e
commit
407d599dea
1 changed files with 17 additions and 14 deletions
|
|
@ -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,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue