fix(tree-sitter): check tree-sitter-mode is bound

and-true-p
This commit is contained in:
Jeetaditya Chatterjee 2022-04-02 02:28:15 +01:00
parent 74fc2a87c9
commit cd6cb8c499
No known key found for this signature in database
GPG key ID: 09D54CECD2132B91

View file

@ -34,7 +34,7 @@
;; NOTE: does this need more?
(defun +fold--ts-fold-p ()
(and tree-sitter-mode
(and (bound-and-true-p tree-sitter-mode)
(featurep 'ts-fold)))
(defun +fold--invisible-points (count)