tweak(tree-sitter): add tree sitter check to foldp
instead of just checking if ts-fold is enabled I also check i tree-sitter mode is actually enabled if not it will move onto hidehshow
This commit is contained in:
parent
c1f640209a
commit
c3e360eeaa
1 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,8 @@
|
|||
|
||||
;; NOTE: does this need more?
|
||||
(defun +fold--ts-fold-p ()
|
||||
(featurep 'ts-fold))
|
||||
(and tree-sitter-mode
|
||||
(featurep 'ts-fold)))
|
||||
|
||||
(defun +fold--invisible-points (count)
|
||||
(let (points)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue