diff options
| author | brotzeit <brotzeitmacher@gmail.com> | 2022-12-27 19:16:44 +0100 |
|---|---|---|
| committer | Sibi Prabakaran <sibi@psibi.in> | 2024-02-17 11:12:16 +0530 |
| commit | f74dd1cd87987ea7faf0cfc6240c2284ef9133cb (patch) | |
| tree | 1601fe6d9dab4a84a89a4e4be1fcf5b933591815 /README.md | |
| parent | 8bbe70b72fde8046e12e6a41ffbee6c9f6b4ddd7 (diff) | |
| download | rust-mode-f74dd1cd87987ea7faf0cfc6240c2284ef9133cb.tar.gz | |
provide alternative rust-mode that derives from rust-ts-mode
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -21,7 +21,7 @@ - [Clippy](#clippy) - [Easy insertion of dbg!](#easy-insertion-of-dbg) - [More commands](#more-commands) - - [highlighting with tree-sitter](#highlighting-with-tree-sitter) + - [tree-sitter](#tree-sitter) - [LSP](#lsp) - [eglot](#eglot) - [lsp-mode](#lsp-mode) @@ -191,9 +191,20 @@ This is bound to <kbd>C-c C-d</kbd> by default. - `rust-toggle-mutability` toggle mut for var defined at current line -## highlighting with tree-sitter +## tree-sitter -You should take a look at [tree-sitter](https://github.com/emacs-tree-sitter/elisp-tree-sitter). When the dependencies are installed you can activate the feature with: +You can try the new native treesitter mode `rust-ts-mode` with: + +```elisp +(use-package rust-mode + :init + (setq rust-mode-treesitter-derive t)) +``` + +In case you want to use treesitter but can't use emacs master, you can +take a look at +[tree-sitter](https://github.com/emacs-tree-sitter/elisp-tree-sitter). When +the dependencies are installed you can activate the feature with: ```elisp (use-package tree-sitter |
