Add suggested settings note for coc (#1144)

This commit is contained in:
Jade 2021-06-12 09:17:06 -07:00 committed by GitHub
parent 5e61e50c17
commit 18493f62b0
1 changed files with 5 additions and 0 deletions

View File

@ -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: