nim c -p:src -o:app -r tests/foo.nim
#or with a nim.cfg containing `path="src"`
nim c -o:app -r tests/foo.nim
and it works; however sublimetext with nimline package will give syntax highlight error where i call import foo.bar because it doesn't know that src was added to the path
(with file in src/foo.bar.nim)
how do I tell sublime to look for my nim.cfg so that syntax highlighting works?
The first problem is because NimLime doesn't add --threads:on. This could be fixed in in NimLime by adding --threads:on to the code. It could also be fixed by using a configuration file or NimScript file
EDIT: adding options inside ~/.config/nim.cfg seems to work; adding option in $project_root/nim.cfg also works (but not sure if always works?)
on the terminal I can call:
and it works; however sublimetext with nimline package will give syntax highlight error where i call
import foo.bar
because it doesn't know that src was added to the path (with file in src/foo.bar.nim)how do I tell sublime to look for my nim.cfg so that syntax highlighting works?
Seems related to https://github.com/Varriount/NimLime/issues/89 :
EDIT: adding options inside ~/.config/nim.cfg seems to work; adding option in $project_root/nim.cfg also works (but not sure if always works?)