Move the treesitter language source list into the use-package block.

This commit is contained in:
Tom Alexander 2023-05-27 11:57:37 -04:00
parent 0eb5a8cc2b
commit df75bf53e6
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 1 additions and 5 deletions

View File

@ -44,6 +44,7 @@
:init
(add-to-list 'major-mode-remap-alist '(rust-mode . rust-ts-mode))
:config
(add-to-list 'treesit-language-source-alist '(rust "https://github.com/tree-sitter/tree-sitter-rust"))
(treesit-install-language-grammar 'rust)
;; Add keybindings for interacting with Cargo
(use-package cargo

View File

@ -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
;; can be overridden in each language's use-package call with:
;;