mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-06 15:13:33 -05:00
fix(fold): only enable ts-fold-mode in tree-sitter buffers
ts-fold-mode is buffer-local, and will complain if activated in a buffer tree-sitter doesn't support (e.g. fundamental-mode). global-ts-fold-mode will filter based on tree-sitter-mode's activation and language support. Fix: #7895
This commit is contained in:
@@ -86,6 +86,7 @@
|
||||
:config
|
||||
(vimish-fold-global-mode +1))
|
||||
|
||||
|
||||
(use-package! ts-fold
|
||||
:when (modulep! :tools tree-sitter)
|
||||
:after tree-sitter
|
||||
@@ -97,4 +98,4 @@
|
||||
:inherit font-lock-comment-face
|
||||
:weight light))
|
||||
(setq ts-fold-replacement " [...] ")
|
||||
(ts-fold-mode +1))
|
||||
(global-ts-fold-mode +1))
|
||||
|
Reference in New Issue
Block a user