Skip to content

Commit 16db93a

Browse files
committed
feat(prog): add ts-fold for treesit
1 parent b3f3474 commit 16db93a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

modules/me-prog.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@
3030
;; Install all languages when calling `treesit-auto-install-all'
3131
(setq treesit-language-source-alist (treesit-auto--build-treesit-source-alist)))
3232

33+
;; To avoid installing `tree-sitter' as this fork uses the built-in `treesit'
34+
(push 'tree-sitter straight-built-in-pseudo-packages)
35+
36+
(use-package ts-fold
37+
:straight (:host github :repo "garyo/ts-fold" :branch "andrew-sw/treesit-el-support")
38+
:after treesit treesit-auto
39+
:hook (minemacs-after-startup . global-ts-fold-mode))
40+
3341
(use-package combobulate
3442
:straight t
3543
:hook python-ts-mode js-ts-mode css-ts-mode yaml-ts-mode typescript-ts-mode tsx-ts-mode

0 commit comments

Comments
 (0)