fix(tree-sitter): unable to find local grammars

Ref: #7623
This commit is contained in:
Henrik Lissner
2025-06-28 17:37:24 +02:00
parent 5b37bfee23
commit 4df993d683

View File

@ -9,6 +9,7 @@
:defer t
:config
;; HACK: treesit lacks any way to dictate where to install grammars.
(add-to-list 'treesit-extra-load-path doom-profile-data-dir)
(defadvice! +tree-sitter--install-grammar-to-local-dir-a (fn &rest args)
"Write grammars to `doom-profile-data-dir'."
:around #'treesit-install-language-grammar