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:
parent
cb6d4e34eb
commit
597cca20eb
2 changed files with 4 additions and 4 deletions
|
|
@ -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 })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue