We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdf6a80 commit c38815fCopy full SHA for c38815f
1 file changed
gptel-cpp-complete.el
@@ -95,9 +95,8 @@
95
;; ------------------------------------------------------------
96
(defun gptel-cpp-complete--get-treesit-extra-load-path ()
97
"Get `treesiter' extra load path."
98
- (list (expand-file-name
99
- "./" (file-name-directory
100
- (or load-file-name (buffer-file-name))))))
+ (when-let ((lib (locate-library "gptel-cpp-complete")))
+ (list (file-name-directory lib))))
101
102
(defmacro gptel-cpp-complete--with-which-function-mode (&rest body)
103
"Execute BODY with `which-function-mode' enabled, then restore original state."
0 commit comments