aboutsummaryrefslogtreecommitdiff
path: root/docs/user/manual.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'docs/user/manual.adoc')
-rw-r--r--docs/user/manual.adoc28
1 files changed, 12 insertions, 16 deletions
diff --git a/docs/user/manual.adoc b/docs/user/manual.adoc
index 36a86e78f..e74b287fb 100644
--- a/docs/user/manual.adoc
+++ b/docs/user/manual.adoc
@@ -178,6 +178,15 @@ $ cargo xtask install --server
178If your editor can't find the binary even though the binary is on your `$PATH`, the likely explanation is that it doesn't see the same `$PATH` as the shell, see https://github.com/rust-analyzer/rust-analyzer/issues/1811[this issue]. 178If your editor can't find the binary even though the binary is on your `$PATH`, the likely explanation is that it doesn't see the same `$PATH` as the shell, see https://github.com/rust-analyzer/rust-analyzer/issues/1811[this issue].
179On Unix, running the editor from a shell or changing the `.desktop` file to set the environment should help. 179On Unix, running the editor from a shell or changing the `.desktop` file to set the environment should help.
180 180
181==== `rustup`
182
183`rust-analyzer` is available in `rustup`, but only in the nightly toolchain:
184
185[source,bash]
186---
187$ rustup +nightly component add rust-analyzer-preview
188---
189
181==== Arch Linux 190==== Arch Linux
182 191
183The `rust-analyzer` binary can be installed from the repos or AUR (Arch User Repository): 192The `rust-analyzer` binary can be installed from the repos or AUR (Arch User Repository):
@@ -245,23 +254,10 @@ let g:LanguageClient_serverCommands = {
245 254
246==== YouCompleteMe 255==== YouCompleteMe
247 256
2481. Install YouCompleteMe by following the instructions 257Install YouCompleteMe by following the instructions
249 https://github.com/ycm-core/lsp-examples#rust-rust-analyzer[here] 258 https://github.com/ycm-core/YouCompleteMe#installation[here].
250 259
2512. Configure by adding this to your vim/neovim config file (replacing the existing Rust-specific line if it exists): 260rust-analyzer is the default in ycm, it should work out of the box.
252+
253[source,vim]
254----
255let g:ycm_language_server =
256\ [
257\ {
258\ 'name': 'rust',
259\ 'cmdline': ['rust-analyzer'],
260\ 'filetypes': ['rust'],
261\ 'project_root_files': ['Cargo.toml']
262\ }
263\ ]
264----
265 261
266==== ALE 262==== ALE
267 263