Skip to content

Commit 9a2141c

Browse files
committed
Fix expand ARC/macro
The default value for the `nimsuggestPath` setting is `"nimsuggest"` `getNimPath` returns an invalid path.
1 parent 7223892 commit 9a2141c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ls.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ proc getNimSuggestPathAndVersion(
508508
(nimsuggestPath, nimVersion)
509509

510510
proc getNimPath*(conf: NlsConfig): Option[string] =
511-
if conf.nimSuggestPath.isSome:
511+
if conf.nimSuggestPath.isSome and conf.nimsuggestPath.get().fileExists():
512512
some(conf.nimSuggestPath.get.parentDir / "nim")
513513
else:
514514
let path = findExe "nim"

0 commit comments

Comments
 (0)