From 68d61d2f9805d8752d5b34031e591fdc9f85e4d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Sun, 31 May 2015 22:56:27 +0200 Subject: [PATCH] Added latexmk callback for general viewer (#175) --- autoload/vimtex/view.vim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/autoload/vimtex/view.vim b/autoload/vimtex/view.vim index d34145d..dda094d 100644 --- a/autoload/vimtex/view.vim +++ b/autoload/vimtex/view.vim @@ -87,6 +87,15 @@ function! s:general.view(file) dict " {{{2 let self.cmd_view = exe.cmd endfunction +" }}}2 +function! s:general.latexmk_append_argument() dict " {{{2 + let cmd = vimtex#latexmk#add_option('new_viewer_always', '0') + let cmd .= vimtex#latexmk#add_option('pdf_update_method', '0') + let cmd .= vimtex#latexmk#add_option('pdf_previewer', 'start ' + \ . g:vimtex_view_general_viewer . g:vimtex_view_mupdf_options) + return cmd +endfunction + " }}}2 " {{{1 MuPDF