-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a simpler version of the Zathura viewer that does not depend on xdotool. It should work better on systems that do not use Xorg, e.g. on Wayland. refer: #2046
- Loading branch information
Showing
3 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
" VimTeX - LaTeX plugin for Vim | ||
" | ||
" Maintainer: Karl Yngve Lervåg | ||
" Email: karl.yngve@gmail.com | ||
" | ||
|
||
function! vimtex#view#zathura_simple#new() abort " {{{1 | ||
return s:viewer.init() | ||
endfunction | ||
|
||
" }}}1 | ||
|
||
|
||
let s:viewer = vimtex#view#_template#new({ | ||
\ 'name': 'Zathura', | ||
\ 'has_synctex': 1, | ||
\}) | ||
|
||
function! s:viewer._check() dict abort " {{{1 | ||
return vimtex#view#zathura#check(self) | ||
endfunction | ||
|
||
" }}}1 | ||
function! s:viewer._start(outfile) dict abort " {{{1 | ||
let self.cmd_start | ||
\ = vimtex#view#zathura#cmdline(a:outfile, self.has_synctex, 2) | ||
|
||
call vimtex#jobs#run(self.cmd_start) | ||
endfunction | ||
|
||
" }}}1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters