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

Ref: #7623
Amend: 4df993d683
This commit is contained in:
Henrik Lissner
2025-06-30 14:47:35 +02:00
parent 0d9cf54c84
commit a8ccd2d47a

View File

@ -12,7 +12,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)
(add-to-list 'treesit-extra-load-path (concat doom-profile-data-dir "tree-sitter"))
(defadvice! +tree-sitter--install-grammar-to-local-dir-a (fn &rest args)
"Write grammars to `doom-profile-data-dir'."
:around #'treesit-install-language-grammar