Skip to content

Commit 771ed20

Browse files
committed
var for project file
1 parent 99258fc commit 771ed20

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nim-suggest.el

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ PROJECT-PATH is added as the last option."
4949
;; '("--define:nimscript" "--define:nimconfig"))
5050
(list "--epc" project-path))))
5151

52+
53+
(defvar nimsuggest-project-file nil
54+
"Nimsuggest needs a project file parameter.")
55+
5256
(defun nimsuggest--find-or-create-epc ()
5357
"Get the epc responsible for the current buffer."
5458
(let ((file buffer-file-name))
@@ -60,7 +64,7 @@ PROJECT-PATH is added as the last option."
6064
(let ((new-epc
6165
(epc:start-epc
6266
nimsuggest-path
63-
(nimsuggest-get-options file))))
67+
(nimsuggest-get-options (or nimsuggest-project-file file)))))
6468
(push (cons file new-epc) nimsuggest--epc-processes-alist)
6569
new-epc))))
6670

0 commit comments

Comments
 (0)