Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit ab3d647

Browse files
authored
Merge pull request #209 from Green-Avocado/rust-analyzer-config-docs
2 parents 1b77e4a + 85c1d5a commit ab3d647

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ However, you may wish to install `rustup` with your OS package manager instead o
4141
It first looks for `rust-analyzer.json`.
4242
If the file does not exists, it then checks `.config/rust-analyzer.json`.
4343

44-
### Example
44+
Refer to the rust-analyzer [User Manual](https://rust-analyzer.github.io/manual.html#configuration) for the supported config options.
4545

46-
`.config/rust-analyzer.json`
46+
### Examples
47+
48+
#### enable proc-macro support (from the [User Manual](https://rust-analyzer.github.io/manual.html#configuration))
4749

4850
```json
4951
{
@@ -56,7 +58,15 @@ If the file does not exists, it then checks `.config/rust-analyzer.json`.
5658
}
5759
```
5860

59-
Refer to the [rust-analyzer User Manual](https://rust-analyzer.github.io/manual.html#configuration) for the supported config options.
61+
#### configure rust-fmt
62+
63+
```json
64+
{
65+
"rustfmt": {
66+
"extraArgs": ["+nightly"]
67+
}
68+
}
69+
```
6070

6171
## Commands
6272

0 commit comments

Comments
 (0)