🔧 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({
|
||||
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,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue