Skip to content

Commit

Permalink
fix: Use handle dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed May 23, 2024
1 parent d03a4f0 commit 6b37ac1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions ts-fold-indicators.el
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@
:lighter nil
:keymap ts-fold-indicators-mode-map
:init-value nil
(if ts-fold-indicators-mode (ts-fold-indicators--enable)
(ts-fold-indicators--disable)))
(tree-sitter--handle-dependent ts-fold-indicators-mode
#'ts-fold-indicators--enable
#'ts-fold-indicators--disable))

;;;###autoload
(define-minor-mode global-ts-fold-indicators-mode
Expand Down
4 changes: 3 additions & 1 deletion ts-fold.el
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ ts-fold can act on."
:group 'ts-fold
:init-value nil
:lighter "TS-Fold"
(if ts-fold-mode (ts-fold--enable) (ts-fold--disable)))
(tree-sitter--handle-dependent ts-fold-mode
#'ts-fold--enable
#'ts-fold--disable))

;;;###autoload
(define-minor-mode global-ts-fold-mode
Expand Down

0 comments on commit 6b37ac1

Please sign in to comment.