diff --git a/README.md b/README.md index 599187c..ffade0a 100644 --- a/README.md +++ b/README.md @@ -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 { @@ -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