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

Add cargo +nightly fmt example to readme #209

Merged
merged 3 commits into from
Jan 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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