Skip to content

Commit 2b06041

Browse files
committed
Update Arch Linux and ALE install instructions
Package has been added to the Arch repos: https://www.archlinux.org/packages/community/x86_64/rust-analyzer/ ALE merged rust-analyzer support: dense-analysis/ale@7000513
1 parent 30eb458 commit 2b06041

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

docs/user/readme.adoc

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -139,17 +139,16 @@ If your editor can't find the binary even though the binary is on your `$PATH`,
139139

140140
==== Arch Linux
141141

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):
143143

144-
- https://aur.archlinux.org/packages/rust-analyzer-bin[`rust-analyzer-bin`] (binary from GitHub releases)
145-
- https://aur.archlinux.org/packages/rust-analyzer[`rust-analyzer`] (built from latest tagged source)
146-
- https://aur.archlinux.org/packages/rust-analyzer-git[`rust-analyzer-git`] (latest git version)
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-git[`rust-analyzer-git`] (latest Git version)
147146

148-
Install it with AUR helper of your choice, for example:
147+
Install it with pacman, for example:
149148

150149
[source,bash]
151150
----
152-
$ yay -S rust-analyzer-bin
151+
$ pacman -S rust-analyzer
153152
----
154153

155154
=== Emacs
@@ -187,7 +186,7 @@ The are several LSP client implementations for vim or neovim:
187186

188187
1. Install LanguageClient-neovim by following the instructions
189188
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
191190

192191
2. Configure by adding this to your vim/neovim config file (replacing the existing Rust-specific line if it exists):
193192
+
@@ -220,17 +219,11 @@ let g:ycm_language_server =
220219

221220
==== ALE
222221

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]:
224223

225224
[source,vim]
226225
----
227-
call ale#linter#Define('rust', {
228-
\ 'name': 'rust-analyzer',
229-
\ 'lsp': 'stdio',
230-
\ 'executable': 'rust-analyzer',
231-
\ 'command': '%e',
232-
\ 'project_root': '.',
233-
\})
226+
let g:ale_linters = {'rust': ['analyzer']}
234227
----
235228

236229
==== nvim-lsp

0 commit comments

Comments
 (0)