Update rust module ()

Use rust-analyzer as lsp server and tree-sitter for syntax highlighting.
This commit is contained in:
Daniel Gerlach 2022-11-21 21:14:15 +01:00 committed by GitHub
parent 1727734002
commit 54e3d81b1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 17 deletions
docs/modules

View file

@ -12,8 +12,7 @@ following packages in your system:
* `rustc` (Rust compiler)
* `cargo` (Rust package manager)
* `rustfmt` (Rust tool for formatting code)
* `racer` (Rust completion tool, not necessary if `prelude-lsp` is enabled)
* `rls` (Rust Language Server, if the `prelude-lsp` feature is enabled)
* `rust-analyzer` (Rust Language Server, required for `prelude-lsp` feature)
## Rust Mode
@ -21,6 +20,11 @@ Emacs comes with Rust programming support through the built-in
`rust-mode`. Whenever you are editing Rust code run <kbd>C-h m</kbd> to
look at the Rust mode key bindings.
## Syntax highlighting
[tree-sitter-mode](https://emacs-tree-sitter.github.io/) is used for nicer
syntax highlighting.
## Syntax checking
Prelude ships with [Flycheck](https://github.com/flycheck/flycheck),