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

Commit

Permalink
Merge pull request #209 from Green-Avocado/rust-analyzer-config-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya authored Jan 22, 2022
2 parents 1b77e4a + 85c1d5a commit ab3d647
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ However, you may wish to install `rustup` with your OS package manager instead o
It first looks for `rust-analyzer.json`.
If the file does not exists, it then checks `.config/rust-analyzer.json`.

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

`.config/rust-analyzer.json`
### Examples

#### enable proc-macro support (from the [User Manual](https://rust-analyzer.github.io/manual.html#configuration))

```json
{
Expand All @@ -56,7 +58,15 @@ If the file does not exists, it then checks `.config/rust-analyzer.json`.
}
```

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

```json
{
"rustfmt": {
"extraArgs": ["+nightly"]
}
}
```

## Commands

Expand Down

0 comments on commit ab3d647

Please sign in to comment.