You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-3
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@
21
21
-[Clippy](#clippy)
22
22
-[Easy insertion of dbg!](#easy-insertion-of-dbg)
23
23
-[More commands](#more-commands)
24
-
-[highlighting with tree-sitter](#highlighting-with-tree-sitter)
24
+
-[tree-sitter](#tree-sitter)
25
25
-[LSP](#lsp)
26
26
-[eglot](#eglot)
27
27
-[lsp-mode](#lsp-mode)
@@ -191,9 +191,20 @@ This is bound to <kbd>C-c C-d</kbd> by default.
191
191
192
192
-`rust-toggle-mutability` toggle mut for var defined at current line
193
193
194
-
## highlighting with tree-sitter
194
+
## tree-sitter
195
195
196
-
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:
196
+
You can try the new native treesitter mode `rust-ts-mode` with:
197
+
198
+
```elisp
199
+
(use-package rust-mode
200
+
:init
201
+
(setq rust-mode-treesitter-derive t))
202
+
```
203
+
204
+
In case you want to use treesitter but can't use Emacs 29.1, you can
205
+
take a look at
206
+
[tree-sitter](https://github.com/emacs-tree-sitter/elisp-tree-sitter). When
207
+
the dependencies are installed you can activate the feature with:
0 commit comments