lang/rust: use lsp-rust instead of rustic-lsp

lsp-rust is supposedly superior, and doesn't assume anything about our
package management system like rustic does.

Relevant to #2195
This commit is contained in:
Henrik Lissner 2019-12-15 22:48:52 -05:00
parent 84252d8962
commit ea632fc530
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -34,6 +34,8 @@ e.g. ~cargo~.
** Hacks
+ rustic has been modified /not/ to automatically install lsp-mode or elgot if
they're missing. Doom expects you to enable the =:tools lsp= module yourself.
+ rustic's LSP integration has been disabled in favor of the rls/rust-analyzer
support provider by the lsp-mode package.
* Prerequisites
This module only requires ~rust~, which can be acquired through =rustup=:
@ -71,11 +73,12 @@ and the ~+lsp~ flag on this module.
* TODO Configuration
** Enable rust-analyzer
You'll need [[https://github.com/rust-analyzer/rust-analyzer][rust-analyzer]] installed on your system, then:
You'll need [[https://github.com/rust-analyzer/rust-analyzer][rust-analyzer]] installed on your system, then add the following to
=$DOOMDIR/config.el=:
#+BEGIN_SRC elisp
(after! rustic
(setq rustic-lsp-server 'rust-analyzer))
(after! lsp-rust
(setq lsp-rust-server 'rust-analyzer))
#+END_SRC
* TODO Troubleshooting