Skip to content

Commit

Permalink
clearer documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tpeacock19 committed Jul 24, 2024
1 parent 49831a6 commit 253c36d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion treesit-fold-indicators.el
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,11 @@
:group 'treesit-fold)

(defun treesit-fold-indicators--trigger ()
"Enable `treesit-fold-indicators-mode' when `treesit-fold-mode' can
be enabled."
(when (or treesit-fold-mode
(treesit-fold-mode 1))
(treesit-fold-indicators-mode)))
(treesit-fold-indicators-mode 1)))
;;
;; (@* "Events" )
;;
Expand Down
2 changes: 1 addition & 1 deletion treesit-fold.el
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ For example, Lua, Ruby, etc."
(treesit-parser-list))

(defun treesit-fold--trigger ()
"Toggle `treesit-fold-mode' when the current mode is treesit-fold compatible."
"Enable `treesit-fold-mode' when the current mode is treesit-fold compatible."
(when (and (treesit-fold-ready-p)
(treesit-fold-usable-mode-p))
(treesit-fold-mode 1)))
Expand Down

0 comments on commit 253c36d

Please sign in to comment.