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:
Marty Oehme 2021-04-12 18:33:28 +02:00
parent 4ade691441
commit 27a8a38c24
Signed by: Marty
GPG key ID: B7538B8F50A1C800

View file

@ -1,9 +1,9 @@
function s:_compile(verbose, ...) function s:_compile(verbose, ...)
:execute(":w!") :execute(":w!")
if a:verbose if a:verbose
execute "!" . "compile" . " " . "\"%\"" . " " . join(a:000) execute "!" . "compile" . " " . "\"%:p\"" . " " . join(a:000)
else else
silent execute "!" . "compile" . " " . "\"%\"" . " " . join(a:000) silent execute "!" . "compile" . " " . "\"%:p\"" . " " . join(a:000)
endif endif
endfunction endfunction