Skip to content

Commit 6e4f0cb

Browse files
authored
Add suggested settings note for coc (#1144)
1 parent 8608047 commit 6e4f0cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/building/suggested.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ you can write:
4343
in your `.vscode/settings.json` file. This will ask `rust-analyzer` to use
4444
`x.py check` to check the sources, and the stage 0 rustfmt to format them.
4545

46+
If you're running `coc.nvim`, you can use `:CocLocalConfig` to create a
47+
`.vim/coc-settings.json` and enter the same settings as above, but replacing
48+
`editor.formatOnSave: true,` with
49+
`"coc.preferences.formatOnSaveFiletypes": ["rust"],`.
50+
4651
If running `x.py check` on save is inconvenient, in VS Code you can use a [Build
4752
Task] instead:
4853

0 commit comments

Comments
 (0)