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:
parent
75c0b15381
commit
afdb6b2642
@ -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_options', '')
|
||||||
call vimtex#util#set_default('g:vimtex_view_mupdf_send_keys', '')
|
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')
|
if !executable('mupdf')
|
||||||
echoerr 'vimtex viewer MuPDF is not executable!'
|
echoerr 'vimtex viewer MuPDF is not executable!'
|
||||||
@ -302,10 +298,6 @@ function! s:zathura.init() dict " {{{2
|
|||||||
" Default Zathura settings
|
" Default Zathura settings
|
||||||
"
|
"
|
||||||
call vimtex#util#set_default('g:vimtex_view_zathura_options', '')
|
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')
|
if !executable('zathura')
|
||||||
echoerr 'vimtex viewer Zathura is not executable!'
|
echoerr 'vimtex viewer Zathura is not executable!'
|
||||||
|
Loading…
Reference in New Issue
Block a user