Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions lisp/treesit.el
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ of max unsigned 32-bit value for byte offsets into buffer text."
:type 'integer
:version "29.1")

(defcustom treesit-langs-install-directory nil
"Set treesit langs install directory"
:type 'string
:version "29.1")

;;; Parser API supplement

(defun treesit-parse-string (string language)
Expand Down Expand Up @@ -3008,8 +3013,8 @@ executable programs, such as the C/C++ compiler and linker."
lang))))
(condition-case err
(apply #'treesit--install-language-grammar-1
;; The nil is OUT-DIR.
(cons nil recipe))
;; OUT-DIR default is nil, but can be customized to other directory
(cons treesit-langs-install-directory recipe))
(error
(display-warning
'treesit
Expand Down