Skip to content

Commit

Permalink
[tree-sitter][ts-fold] fix global mode activation
Browse files Browse the repository at this point in the history
New version of ts-fold breaks in modes in which tree-sitter isn't supported.
Based on
[this](emacs-tree-sitter/ts-fold#121 (comment))
issue and comment, update the ts-fold activation for major mode.
  • Loading branch information
nixmaniack committed Jun 24, 2024
1 parent 554d5cd commit ef0dcf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layers/+tools/tree-sitter/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@
(if tree-sitter-fold-indicators-enable
(progn
(setq ts-fold-indicators-priority 0)
(global-ts-fold-indicators-mode))
(add-hook 'tree-sitter-after-on-hook #'ts-fold-indicators-mode)
)
(global-ts-fold-mode)))))

0 comments on commit ef0dcf1

Please sign in to comment.