Update rust module (#1388)
Use rust-analyzer as lsp server and tree-sitter for syntax highlighting.
This commit is contained in:
parent
1727734002
commit
54e3d81b1f
3 changed files with 34 additions and 17 deletions
docs/modules
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue