refactor(tree-sitter): move ts-langs into use-pkg
Move tree-sitter-langs into its own use-package call This is to reflect an accepted code pattern seen in the rest of doom's code. This does not cause any user facing changes
This commit is contained in:
parent
cb269deed6
commit
4552064a5a
1 changed files with 3 additions and 2 deletions
|
@ -4,13 +4,14 @@
|
||||||
:hook (prog-mode . turn-on-tree-sitter-mode)
|
:hook (prog-mode . turn-on-tree-sitter-mode)
|
||||||
:hook (tree-sitter-after-on . tree-sitter-hl-mode)
|
:hook (tree-sitter-after-on . tree-sitter-hl-mode)
|
||||||
:config
|
:config
|
||||||
(require 'tree-sitter-langs)
|
|
||||||
|
|
||||||
;; This makes every node a link to a section of code
|
;; This makes every node a link to a section of code
|
||||||
(setq tree-sitter-debug-jump-buttons t
|
(setq tree-sitter-debug-jump-buttons t
|
||||||
;; and this highlights the entire sub tree in your code
|
;; and this highlights the entire sub tree in your code
|
||||||
tree-sitter-debug-highlight-jump-region t))
|
tree-sitter-debug-highlight-jump-region t))
|
||||||
|
|
||||||
|
(use-package! tree-sitter-langs
|
||||||
|
:after tree-sitter)
|
||||||
|
|
||||||
(when (featurep! :editor evil +everywhere)
|
(when (featurep! :editor evil +everywhere)
|
||||||
(use-package! evil-textobj-tree-sitter
|
(use-package! evil-textobj-tree-sitter
|
||||||
:after tree-sitter
|
:after tree-sitter
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue