fix(tree-sitter): lazy load tree-sitter-langs
Some how for some reason tree-sitter-langs managed to load. If if put its require in the block of a lazy loaded package. it would load. If i were to set its use-package call to load it after a lazy loaded package. it would load. a hook (and disabling it) were the only reliable ways to get it to lazy load
This commit is contained in:
parent
4552064a5a
commit
4eeb45f80b
1 changed files with 2 additions and 2 deletions
|
@ -9,8 +9,7 @@
|
|||
;; and this highlights the entire sub tree in your code
|
||||
tree-sitter-debug-highlight-jump-region t))
|
||||
|
||||
(use-package! tree-sitter-langs
|
||||
:after tree-sitter)
|
||||
(add-hook! 'tree-sitter-after-on-hook (require 'tree-sitter-langs))
|
||||
|
||||
(when (featurep! :editor evil +everywhere)
|
||||
(use-package! evil-textobj-tree-sitter
|
||||
|
@ -33,3 +32,4 @@
|
|||
|
||||
:textobj "l" nil nil
|
||||
:textobj "l" (evil-textobj-tree-sitter-get-textobj "loop.inner") (evil-textobj-tree-sitter-get-textobj "loop.outer"))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue