mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-18 16:06:56 -05:00
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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user