Skip to content

Commit

Permalink
lang/rust: use lsp-rust instead of rustic-lsp
Browse files Browse the repository at this point in the history
lsp-rust is supposedly superior, and doesn't assume anything about our
package management system like rustic does.

Relevant to #2195
  • Loading branch information
hlissner committed Dec 16, 2019
1 parent 84252d8 commit ea632fc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modules/lang/rust/README.org
Expand Up @@ -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=:
Expand Down Expand Up @@ -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

0 comments on commit ea632fc

Please sign in to comment.