Suggest a separate build directory for rust-analyzer (#1378)

This commit is contained in:
Joshua Nelson 2022-07-03 02:17:39 -04:00 committed by GitHub
parent 32d3192152
commit 96c3ff376a
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ in your `.vscode/settings.json` file. This will ask `rust-analyzer` to use
> a triple is `x86_64-unknown-linux-gnu`. An easy way to check your target triple
> is to run `rustc -vV` and checking the `host` value of its output.
If you have enough free disk space and you would like to be able to run `x.py` commands while
rust-analyzer runs in the background, you can also add `--build-dir build-rust-analyzer` to the
`overrideCommand` to avoid x.py locking.
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