Incorrect main project file detection
The plugin doesn't detect correctly the main project file despite starting to use idetools from it. See the following steps:
$ git clone https://github.com/dom96/ipsumgenera.git
$ cd ipsumgenera
$ git checkout fca1d7c100e06c2d4c900e4e75e50931a06e583d
$ vim ipsum.nim
/renderRst<enter>
:call JumpToDef() -> opens src/rstrender.nim
advance cursor to any type (like string) and :call JumpToDef()
At this point any jump query inside rstrender.nim will fail with SIGSEGV: Illegal storage access. (Attempt to read from nil?). The reason for this is that the file doesn't compile without special parameters, which are present in the root ipsum.nimrod.cfg file. The parameters add the required path switches to find the rst related modules. This can be seen running nimrod check src/rstrender.nim which doesn't find the types either and at some point crashes.
Another way to see the problem is to manually run the query stored in the log replacing the project file with ipsum.nim so it works, like
nimrod idetools --def --track:"/private/tmp/ipsumgenera/src/rstrender.nim,205,22" ipsum.nim
I wonder if this situation can be autodetected better. If not, would it be valid to help the vim plugin with explicit files? Maybe the plugin could look for .vim.idetools.proj files which would be symbolic links to the correct main .nim file?