diff options
| author | Jade <software@lfcode.ca> | 2021-06-12 09:17:06 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-13 01:17:06 +0900 |
| commit | 3b0f8f658e34955e30dc5b14999fd26188aade17 (patch) | |
| tree | a7da53756eee034d66c570b141b364dcd83e6fd1 /src/doc/rustc-dev-guide | |
| parent | fcf32f4aa92e2c5afc78dd4c0b97aba476339c3e (diff) | |
| download | rust-3b0f8f658e34955e30dc5b14999fd26188aade17.tar.gz rust-3b0f8f658e34955e30dc5b14999fd26188aade17.zip | |
Add suggested settings note for coc (#1144)
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/building/suggested.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/doc/rustc-dev-guide/src/building/suggested.md b/src/doc/rustc-dev-guide/src/building/suggested.md index f27793140d3..bb6badcd6e2 100644 --- a/src/doc/rustc-dev-guide/src/building/suggested.md +++ b/src/doc/rustc-dev-guide/src/building/suggested.md @@ -43,6 +43,11 @@ you can write: in your `.vscode/settings.json` file. This will ask `rust-analyzer` to use `x.py check` to check the sources, and the stage 0 rustfmt to format them. +If you're running `coc.nvim`, you can use `:CocLocalConfig` to create a +`.vim/coc-settings.json` and enter the same settings as above, but replacing +`editor.formatOnSave: true,` with +`"coc.preferences.formatOnSaveFiletypes": ["rust"],`. + If running `x.py check` on save is inconvenient, in VS Code you can use a [Build Task] instead: |
