diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-05-06 18:13:02 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-06 18:13:02 +0100 |
commit | 9cb55966fe0fee791072f275ac55b90b8ee13e32 (patch) | |
tree | f9632556162efb81dff2741a0b40353b2437aa0c | |
parent | 6b18d364fc1cac3c0f1924e3a29368a34e0ea304 (diff) | |
parent | 2b06041692dcdbc1c49292fd64fdc67da312c1ca (diff) |
Merge #4333
4333: Update Arch Linux and ALE install instructions r=matklad a=polyzen
Package has been added to the Arch repos:
https://www.archlinux.org/packages/community/x86_64/rust-analyzer/
ALE merged rust-analyzer support:
https://github.com/dense-analysis/ale/commit/70005134e5b2d40d176ee5b851ac64a296b22201
Co-authored-by: Daniel M. Capella <[email protected]>
-rw-r--r-- | docs/user/readme.adoc | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/docs/user/readme.adoc b/docs/user/readme.adoc index 301e9a49c..f6ce0accf 100644 --- a/docs/user/readme.adoc +++ b/docs/user/readme.adoc | |||
@@ -139,17 +139,16 @@ If your editor can't find the binary even though the binary is on your `$PATH`, | |||
139 | 139 | ||
140 | ==== Arch Linux | 140 | ==== Arch Linux |
141 | 141 | ||
142 | The `rust-analyzer` binary can be installed from AUR (Arch User Repository): | 142 | The `rust-analyzer` binary can be installed from the repos or AUR (Arch User Repository): |
143 | 143 | ||
144 | - https://aur.archlinux.org/packages/rust-analyzer-bin[`rust-analyzer-bin`] (binary from GitHub releases) | 144 | - https://www.archlinux.org/packages/community/x86_64/rust-analyzer/[`rust-analyzer`] (built from latest tagged source) |
145 | - https://aur.archlinux.org/packages/rust-analyzer[`rust-analyzer`] (built from latest tagged source) | 145 | - https://aur.archlinux.org/packages/rust-analyzer-git[`rust-analyzer-git`] (latest Git version) |
146 | - https://aur.archlinux.org/packages/rust-analyzer-git[`rust-analyzer-git`] (latest git version) | ||
147 | 146 | ||
148 | Install it with AUR helper of your choice, for example: | 147 | Install it with pacman, for example: |
149 | 148 | ||
150 | [source,bash] | 149 | [source,bash] |
151 | ---- | 150 | ---- |
152 | $ yay -S rust-analyzer-bin | 151 | $ pacman -S rust-analyzer |
153 | ---- | 152 | ---- |
154 | 153 | ||
155 | === Emacs | 154 | === Emacs |
@@ -187,7 +186,7 @@ The are several LSP client implementations for vim or neovim: | |||
187 | 186 | ||
188 | 1. Install LanguageClient-neovim by following the instructions | 187 | 1. Install LanguageClient-neovim by following the instructions |
189 | https://github.com/autozimu/LanguageClient-neovim[here] | 188 | https://github.com/autozimu/LanguageClient-neovim[here] |
190 | * The github project wiki has extra tips on configuration | 189 | * The GitHub project wiki has extra tips on configuration |
191 | 190 | ||
192 | 2. Configure by adding this to your vim/neovim config file (replacing the existing Rust-specific line if it exists): | 191 | 2. Configure by adding this to your vim/neovim config file (replacing the existing Rust-specific line if it exists): |
193 | + | 192 | + |
@@ -220,17 +219,11 @@ let g:ycm_language_server = | |||
220 | 219 | ||
221 | ==== ALE | 220 | ==== ALE |
222 | 221 | ||
223 | To add the LSP server to https://github.com/dense-analysis/ale[ale]: | 222 | To use the LSP server in https://github.com/dense-analysis/ale[ale]: |
224 | 223 | ||
225 | [source,vim] | 224 | [source,vim] |
226 | ---- | 225 | ---- |
227 | call ale#linter#Define('rust', { | 226 | let g:ale_linters = {'rust': ['analyzer']} |
228 | \ 'name': 'rust-analyzer', | ||
229 | \ 'lsp': 'stdio', | ||
230 | \ 'executable': 'rust-analyzer', | ||
231 | \ 'command': '%e', | ||
232 | \ 'project_root': '.', | ||
233 | \}) | ||
234 | ---- | 227 | ---- |
235 | 228 | ||
236 | ==== nvim-lsp | 229 | ==== nvim-lsp |