Enable tree-sitter-hl-mode for supported languages

This commit is contained in:
Jeremy Dormitzer 2023-04-20 15:28:26 -04:00
parent 13dd59728f
commit 1765f48196

View File

@ -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)