mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-14 15:46:56 -05:00
feat(fold): add treesit-fold support
This commit is contained in:
@@ -3,8 +3,7 @@
|
||||
(defcustom +fold-ellipsis " [...] "
|
||||
"The ellipsis to show for ellided regions (folds).
|
||||
|
||||
`org-ellipsis', `truncate-string-ellipsis', and `ts-fold-replacement' are set to
|
||||
this."
|
||||
`org-ellipsis' and `truncate-string-ellipsis' are set to this."
|
||||
:type 'string
|
||||
:group '+fold)
|
||||
|
||||
@@ -106,9 +105,8 @@ this."
|
||||
(vimish-fold-global-mode +1))
|
||||
|
||||
|
||||
(use-package! ts-fold
|
||||
:when (modulep! :tools tree-sitter)
|
||||
:after tree-sitter
|
||||
:config
|
||||
(setq ts-fold-replacement +fold-ellipsis)
|
||||
(global-ts-fold-mode +1))
|
||||
;; Will be autoloaded by fold commands
|
||||
(use-package! treesit-fold
|
||||
:when (modulep! :tools tree-sitter -compat)
|
||||
:defer t
|
||||
:config (global-treesit-fold-mode +1))
|
||||
|
Reference in New Issue
Block a user