Skip to content

Commit

Permalink
docs: add ignoring #[server] macro for helix as well (#1951)
Browse files Browse the repository at this point in the history
Update helix configuration for the newest version.
To be consistent, adding the `server` ignore entry to helix as well.
Also sorting the parameters alphabetically.
  • Loading branch information
kerkmann authored Oct 27, 2023
1 parent 4b04373 commit 3394e31
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/book/src/appendix_dx.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ VSCode `settings.json`:
```json
"rust-analyzer.procMacro.ignored": {
"leptos_macro": [
"server",
"component"
"component",
"server"
],
}
```
Expand All @@ -30,8 +30,8 @@ require('lspconfig').rust_analyzer.setup {
procMacro = {
ignored = {
leptos_macro = {
"server",
"component",
"server",
},
},
},
Expand All @@ -45,7 +45,9 @@ Helix, in `.helix/languages.toml`:
```toml
[[language]]
name = "rust"
config = { procMacro = {ignored = {leptos_macro = ["component"]}}}

[language-server.rust-analyzer]
config = { procMacro = { ignored = { leptos_macro = ["component", "server"] } } }
```

```admonish info
Expand Down

0 comments on commit 3394e31

Please sign in to comment.