From 27a8a38c24e030adbc4cf26a5fd6f22258523e6b Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 12 Apr 2021 18:33:28 +0200 Subject: [PATCH] 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. --- nvim/.config/nvim/plugin/personal/doccompile.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/.config/nvim/plugin/personal/doccompile.vim b/nvim/.config/nvim/plugin/personal/doccompile.vim index 5e0189e..83d361b 100644 --- a/nvim/.config/nvim/plugin/personal/doccompile.vim +++ b/nvim/.config/nvim/plugin/personal/doccompile.vim @@ -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