Skip to content

Commit

Permalink
share link target (#1740)
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang authored Aug 27, 2023
1 parent 0a88668 commit 0985f5d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/building/suggested.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ If you have enough free disk space and you would like to be able to run `x` comm
rust-analyzer runs in the background, you can also add `--build-dir build-rust-analyzer` to the
`overrideCommand` to avoid x locking.

[`src/etc/rust_analyzer_settings.json`]: https://github.com/rust-lang/rust/blob/master/src/etc/rust_analyzer_settings.json

If running `./x check` on save is inconvenient, in VS Code you can use a [Build
Task] instead:

Expand Down Expand Up @@ -74,9 +72,9 @@ Rust-Analyzer to already be configured with Neovim. Steps for this can be
`neoconf` is able to read and update Rust-Analyzer settings automatically when the project is
opened when this file is detected.

If you're running `coc.nvim`, you can use `:CocLocalConfig` to create a
`.vim/coc-settings.json` and copy the settings from
[this file](https://github.com/rust-lang/rust/blob/master/src/etc/rust_analyzer_settings.json).
If you're running `coc.nvim`,
you can use `:CocLocalConfig` to create a `.vim/coc-settings.json`,
and copy the settings from [`src/etc/rust_analyzer_settings.json`].

Another way is without a plugin, and creating your own logic in your configuration. To do this you
must translate the JSON to Lua yourself. The translation is 1:1 and fairly straight-forward. It
Expand Down Expand Up @@ -347,3 +345,5 @@ You can use `source ./src/etc/completions/x.py.<extension>`
to load completions for your shell of choice,
or `source .\src\etc\completions\x.py.ps1` for PowerShell.
Adding this to your shell's startup script (e.g. `.bashrc`) will automatically load this completion.

[`src/etc/rust_analyzer_settings.json`]: https://github.com/rust-lang/rust/blob/master/src/etc/rust_analyzer_settings.json

0 comments on commit 0985f5d

Please sign in to comment.