nit(tree-sitter): cleanup

remove dead lines
remove old code comments
add in hack... thingy?
This commit is contained in:
Jeetaditya Chatterjee 2021-12-09 03:26:29 +00:00
parent 32bf2ee4cf
commit 2a7442da74
No known key found for this signature in database
GPG key ID: 09D54CECD2132B91

View file

@ -1,9 +1,6 @@
;;; tools/tree-sitter/config.el -*- lexical-binding: t; -*-
(use-package! tree-sitter
;; :hook (prog-mode . turn-on-tree-sitter-mode)
:defer t ;; loading is handled by individual modes
:hook (tree-sitter-after-on . tree-sitter-hl-mode)
:config
@ -17,7 +14,7 @@
;; and this highlights the entire sub tree in your code
tree-sitter-debug-highlight-jump-region t))
(if (daemonp) ;; eager load when in daemon as its start time is easily consumed
(if (daemonp) ;; HACK: eager load when in daemon as its start time is easily consumed
(require 'tree-sitter-langs)
(add-hook! 'tree-sitter-after-on-hook
(require 'tree-sitter-langs)))