Force the Nim compiler to output full paths

This fixes calling "nim check" from a directory
outside of the project tree
This commit is contained in:
Zahary Karadjov 2015-05-10 21:01:09 +03:00
commit 597cca20eb
2 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@ let g:nim_log = []
let s:plugin_path = escape(expand('<sfile>:p:h'), ' \')
if !exists("g:nim_caas_enabled")
let g:nim_caas_enabled = 1
let g:nim_caas_enabled = 0
endif
if !executable('nim')
@ -202,7 +202,7 @@ endf
" Syntastic syntax checking
fun! SyntaxCheckers_nim_nim_GetLocList()
let makeprg = 'nim check --hints:off ' . s:CurrentNimFile()
let makeprg = 'nim check --hints:off --listfullpaths ' . s:CurrentNimFile()
let errorformat = &errorformat
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })