From 2a6afef8e123a529c07c167bb5dd2774778a6ac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Kryger?= Date: Fri, 15 Nov 2024 11:11:14 +0000 Subject: [PATCH] [try] treesit no define, ensure bounding --- modules/init-treesit.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/init-treesit.el b/modules/init-treesit.el index b86ddaf0..f52d017e 100644 --- a/modules/init-treesit.el +++ b/modules/init-treesit.el @@ -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)