Skip to content

Commit

Permalink
fix: treat tree-sitter as pseudo package only when built with treesit
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Oct 30, 2023
1 parent e9f1f4f commit 62f5988
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/me-prog.el
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@

;; To avoid installing `tree-sitter' as the used `ts-fold' fork uses the
;; built-in `treesit'
(push 'tree-sitter straight-built-in-pseudo-packages)
(when (+emacs-features-p 'tree-sitter)
(push 'tree-sitter straight-built-in-pseudo-packages))

(use-package ts-fold
:straight (:host github :repo "abougouffa/ts-fold" :branch "andrew-sw/treesit-el-support")
Expand Down

0 comments on commit 62f5988

Please sign in to comment.