fix(tree-sitter): treesit-extra-load-path: use file-name-concat

In case doom-profile-data-dir doesn't end with a slash (which is a
stipulation I won't be enforcing for Doom's dir variables in v3 and
beyond).

Fix: #8511
This commit is contained in:
Henrik Lissner
2025-09-17 17:49:22 -04:00
parent 4159a4f7da
commit 4c9dee2c78

View File

@@ -100,7 +100,7 @@
:config :config
;; HACK: Keep $EMACSDIR clean by installing grammars to the active profile. ;; HACK: Keep $EMACSDIR clean by installing grammars to the active profile.
(add-to-list 'treesit-extra-load-path (concat doom-profile-data-dir "tree-sitter")) (add-to-list 'treesit-extra-load-path (file-name-concat doom-profile-data-dir "tree-sitter"))
(defadvice! +tree-sitter--install-grammar-to-local-dir-a (fn &rest args) (defadvice! +tree-sitter--install-grammar-to-local-dir-a (fn &rest args)
"Write grammars to `doom-profile-data-dir'." "Write grammars to `doom-profile-data-dir'."
:around #'treesit-install-language-grammar :around #'treesit-install-language-grammar