Enable tree-sitter-hl-mode for supported languages
This commit is contained in:
parent
13dd59728f
commit
1765f48196
@ -4,6 +4,7 @@
|
||||
(use-package tree-sitter
|
||||
:hook (after-init . global-tree-sitter-mode)
|
||||
:config
|
||||
(add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode)
|
||||
(defun tree-sitter-first-matching-child (node pred)
|
||||
"Returns the first child of `node' for which `pred' returns true."
|
||||
(cl-loop for i from 0 below (tsc-count-children node)
|
||||
|
Loading…
Reference in New Issue
Block a user