Skip to content

Commit

Permalink
[try] treesit no define, ensure bounding
Browse files Browse the repository at this point in the history
  • Loading branch information
pkryger committed Nov 15, 2024
1 parent 673ebb4 commit 2a6afef
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/init-treesit.el
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,13 @@

(message "Enabling external tree-sitter and tree-sitter-langs")
(use-package tree-sitter-langs
:defines (tree-sitter-langs--testing)
:init
(eval-and-compile
(setq tree-sitter-langs--testing (or (when (boundp 'tree-sitter-langs--testing)
tree-sitter-langs--testing)
(getenv "ci_tests")))))
(unless (boundp 'tree-sitter-langs--testing)
(setq tree-sitter-langs--testing (getenv "ci_tests")))
(when tree-sitter-langs--testing
(message "Skipping installation of language grammars: tree-sitter-langs--testing: %s"
tree-sitter-langs-testing))))
(use-package tree-sitter
:diminish
:after (tree-sitter-langs)
Expand Down

0 comments on commit 2a6afef

Please sign in to comment.