fix bug of some versions of emacs and tree-sitter environment

This commit is contained in:
zedhugh committed 2024-11-04 06:01:14 +08:00
1 parent f0b8c2a5a8
commit a537d35961
3 files changed
+5 -2

No files matched your search

+3
View File
@@ -4,6 +4,9 @@
(and (fboundp 'treesit-available-p) (treesit-available-p))
"Built-in `treesit' available.")
(setq treesit-extra-load-path
(list (file-name-concat creature/config-dir "tree-sitter")))
(when creature/treesit-available
(unless (featurep 'treesit) (require 'treesit))
(when (treesit-ready-p 'javascript)