mirror of https://github.com/tiyn/dotfiles
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
654 B
18 lines
654 B
1 year ago
|
return {
|
||
|
-- latex asynchronous pdf rendering
|
||
|
{
|
||
|
'frabjous/knap',
|
||
|
ft = { 'tex' },
|
||
|
config = function()
|
||
|
vim.g.knap_settings = {
|
||
|
texoutputext = "pdf",
|
||
|
textopdf = "pdflatex -synctex=1 -halt-on-error -interaction=batchmode %docroot%",
|
||
|
textopdfviewerlaunch =
|
||
|
"zathura --synctex-editor-command 'nvim --headless -es --cmd \"lua require('\"'\"'knaphelper'\"'\"').relayjump('\"'\"'%servername%'\"'\"','\"'\"'%{input}'\"'\"',%{line},0)\"' %outputfile%",
|
||
|
textopdfviewerrefresh = "none",
|
||
|
textopdfforwardjump = "zathura --synctex-forward=%line%:%column%:%srcfile% %outputfile%"
|
||
|
}
|
||
|
end
|
||
|
}
|
||
|
}
|