Skip to content

Commit

Permalink
Suggest a separate build directory for rust-analyzer (#1378)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 authored Jul 3, 2022
1 parent ef73d03 commit eb83839
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/building/suggested.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb83839

Please sign in to comment.