1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-18 18:07:45 +01:00

28 lines
1.1 KiB
Lua
Raw Normal View History

return {
-- latex asynchronous pdf rendering
{
'frabjous/knap',
ft = { 'tex' },
config = function()
vim.g.knap_settings = {
2024-10-12 18:05:48 +02:00
delay = 100,
2023-12-04 16:19:12 +01:00
-- tex
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",
2023-12-04 16:19:12 +01:00
textopdfforwardjump = "zathura --synctex-forward=%line%:%column%:%srcfile% %outputfile%",
-- markdown
mdoutputext = "pdf",
mdtopdf = "pandoc %docroot% --toc --toc-depth=5 -V colorlinks=true -V linkcolor=blue -V urlcolor=red -V toccolor=gray -o %outputfile%",
mdtopdfviewerlaunch = "zathura ./%outputfile%",
mdtohtml = "pandoc --standalone %docroot% -o %outputfile%",
mdtohtmlviewerlaunch = "firefox --kiosk --new-window %outputfile%",
mdtohtmlviewerrefresh = "none",
2023-12-04 16:19:12 +01:00
mdtopdfviewerrefresh = "none",
}
end
}
}