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:
parent
84252d8962
commit
ea632fc530
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue