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
|
|
@ -1,6 +1,6 @@
|
||||||
#Nimrod language support for Vim
|
#Nim language support for Vim
|
||||||
|
|
||||||
This provides [Nimrod](http://nimrod-code.org) language support for Vim:
|
This provides [Nim](http://nimrod-code.org) language support for Vim:
|
||||||
|
|
||||||
* Syntax highlighting
|
* Syntax highlighting
|
||||||
* Auto-indent
|
* Auto-indent
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ let g:nim_log = []
|
||||||
let s:plugin_path = escape(expand('<sfile>:p:h'), ' \')
|
let s:plugin_path = escape(expand('<sfile>:p:h'), ' \')
|
||||||
|
|
||||||
if !exists("g:nim_caas_enabled")
|
if !exists("g:nim_caas_enabled")
|
||||||
let g:nim_caas_enabled = 1
|
let g:nim_caas_enabled = 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !executable('nim')
|
if !executable('nim')
|
||||||
|
|
@ -202,7 +202,7 @@ endf
|
||||||
|
|
||||||
" Syntastic syntax checking
|
" Syntastic syntax checking
|
||||||
fun! SyntaxCheckers_nim_nim_GetLocList()
|
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
|
let errorformat = &errorformat
|
||||||
|
|
||||||
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue