docs: add ignoring `#[server]` macro for helix as well (#1951)
Update helix configuration for the newest version. To be consistent, adding the `server` ignore entry to helix as well. Also sorting the parameters alphabetically.
This commit is contained in:
parent
4b0437394c
commit
3394e316b7
|
@ -13,8 +13,8 @@ VSCode `settings.json`:
|
||||||
```json
|
```json
|
||||||
"rust-analyzer.procMacro.ignored": {
|
"rust-analyzer.procMacro.ignored": {
|
||||||
"leptos_macro": [
|
"leptos_macro": [
|
||||||
"server",
|
"component",
|
||||||
"component"
|
"server"
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -30,8 +30,8 @@ require('lspconfig').rust_analyzer.setup {
|
||||||
procMacro = {
|
procMacro = {
|
||||||
ignored = {
|
ignored = {
|
||||||
leptos_macro = {
|
leptos_macro = {
|
||||||
"server",
|
|
||||||
"component",
|
"component",
|
||||||
|
"server",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -45,7 +45,9 @@ Helix, in `.helix/languages.toml`:
|
||||||
```toml
|
```toml
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "rust"
|
name = "rust"
|
||||||
config = { procMacro = {ignored = {leptos_macro = ["component"]}}}
|
|
||||||
|
[language-server.rust-analyzer]
|
||||||
|
config = { procMacro = { ignored = { leptos_macro = ["component", "server"] } } }
|
||||||
```
|
```
|
||||||
|
|
||||||
```admonish info
|
```admonish info
|
||||||
|
|
Loading…
Reference in New Issue