Skip to content

Commit 82efcfc

Browse files
authored
Add get-treesit-extra-load-path.
1 parent dc6d3a6 commit 82efcfc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

gptel-cpp-complete.el

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@
8787
;; ------------------------------------------------------------
8888
;; Helpers
8989
;; ------------------------------------------------------------
90+
(defun gptel-cpp-complete--get-treesit-extra-load-path ()
91+
"Get `treesiter' extra load path."
92+
(list (expand-file-name
93+
"./treesit-grammars/" (file-name-directory
94+
(or load-file-name (buffer-file-name))))))
95+
9096
(defmacro gptel-cpp-complete--with-which-function-mode (&rest body)
9197
"Execute BODY with `which-function-mode' enabled, then restore original state."
9298
`(let ((enabled (bound-and-true-p which-function-mode)))

0 commit comments

Comments
 (0)