We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99258fc commit 771ed20Copy full SHA for 771ed20
nim-suggest.el
@@ -49,6 +49,10 @@ PROJECT-PATH is added as the last option."
49
;; '("--define:nimscript" "--define:nimconfig"))
50
(list "--epc" project-path))))
51
52
+
53
+(defvar nimsuggest-project-file nil
54
+ "Nimsuggest needs a project file parameter.")
55
56
(defun nimsuggest--find-or-create-epc ()
57
"Get the epc responsible for the current buffer."
58
(let ((file buffer-file-name))
@@ -60,7 +64,7 @@ PROJECT-PATH is added as the last option."
60
64
(let ((new-epc
61
65
(epc:start-epc
62
66
nimsuggest-path
63
- (nimsuggest-get-options file))))
67
+ (nimsuggest-get-options (or nimsuggest-project-file file)))))
68
(push (cons file new-epc) nimsuggest--epc-processes-alist)
69
new-epc))))
70
0 commit comments