Move the treesitter language source list into the use-package block.
This commit is contained in:
parent
0eb5a8cc2b
commit
df75bf53e6
@ -44,6 +44,7 @@
|
|||||||
:init
|
:init
|
||||||
(add-to-list 'major-mode-remap-alist '(rust-mode . rust-ts-mode))
|
(add-to-list 'major-mode-remap-alist '(rust-mode . rust-ts-mode))
|
||||||
:config
|
:config
|
||||||
|
(add-to-list 'treesit-language-source-alist '(rust "https://github.com/tree-sitter/tree-sitter-rust"))
|
||||||
(treesit-install-language-grammar 'rust)
|
(treesit-install-language-grammar 'rust)
|
||||||
;; Add keybindings for interacting with Cargo
|
;; Add keybindings for interacting with Cargo
|
||||||
(use-package cargo
|
(use-package cargo
|
||||||
|
@ -1,8 +1,3 @@
|
|||||||
(setq treesit-language-source-alist
|
|
||||||
'(
|
|
||||||
(rust "https://github.com/tree-sitter/tree-sitter-rust")
|
|
||||||
))
|
|
||||||
|
|
||||||
;; Default to the max level of detail in treesitter highlighting. This
|
;; Default to the max level of detail in treesitter highlighting. This
|
||||||
;; can be overridden in each language's use-package call with:
|
;; can be overridden in each language's use-package call with:
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user