Don't set default hooks for mupdf and zathura

This removes default hooks for mupdf and zathura. That is, we no
longer change the WM default focus behaviour. Thus, when a viewer
is opened by latexmk, it will probably steal the focus from Vim.
This commit is contained in:
Karl Yngve Lervåg 2015-12-16 09:04:52 +01:00
parent 75c0b15381
commit afdb6b2642

View File

@ -145,10 +145,6 @@ function! s:mupdf.init() dict " {{{2
"
call vimtex#util#set_default('g:vimtex_view_mupdf_options', '')
call vimtex#util#set_default('g:vimtex_view_mupdf_send_keys', '')
call vimtex#util#set_default('g:vimtex_view_mupdf_hook_callback',
\ 's:focus_vim')
call vimtex#util#set_default('g:vimtex_view_mupdf_hook_view',
\ 's:focus_viewer')
if !executable('mupdf')
echoerr 'vimtex viewer MuPDF is not executable!'
@ -302,10 +298,6 @@ function! s:zathura.init() dict " {{{2
" Default Zathura settings
"
call vimtex#util#set_default('g:vimtex_view_zathura_options', '')
call vimtex#util#set_default('g:vimtex_view_zathura_hook_callback',
\ 's:focus_vim')
call vimtex#util#set_default('g:vimtex_view_zathura_hook_view',
\ 's:focus_viewer')
if !executable('zathura')
echoerr 'vimtex viewer Zathura is not executable!'