nvim: Fix doccompile plugin
Fixed plugin to work from any path, regardless of where the current working directory is, by using the full path in any compilation operation.
This commit is contained in:
parent
4ade691441
commit
27a8a38c24
1 changed files with 2 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
|||
function s:_compile(verbose, ...)
|
||||
:execute(":w!")
|
||||
if a:verbose
|
||||
execute "!" . "compile" . " " . "\"%\"" . " " . join(a:000)
|
||||
execute "!" . "compile" . " " . "\"%:p\"" . " " . join(a:000)
|
||||
else
|
||||
silent execute "!" . "compile" . " " . "\"%\"" . " " . join(a:000)
|
||||
silent execute "!" . "compile" . " " . "\"%:p\"" . " " . join(a:000)
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
|
Loading…
Reference in a new issue