From c3e360eeaa46d8c0d674c8da291c2ed4edbda4ce Mon Sep 17 00:00:00 2001 From: Jeetaditya Chatterjee Date: Thu, 28 Oct 2021 14:46:22 +0100 Subject: [PATCH] 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 --- modules/editor/fold/autoload/fold.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/editor/fold/autoload/fold.el b/modules/editor/fold/autoload/fold.el index b8ce7ad39..260fa718f 100644 --- a/modules/editor/fold/autoload/fold.el +++ b/modules/editor/fold/autoload/fold.el @@ -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)