1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-13 04:51:15 +02:00

nvim: use knap for markdown aswell

This commit is contained in:
2023-12-04 16:19:12 +01:00
parent 46c3f34aa5
commit b48e634554
5 changed files with 10 additions and 20 deletions

View File

@@ -5,12 +5,18 @@ return {
ft = { 'tex' },
config = function()
vim.g.knap_settings = {
-- 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",
textopdfforwardjump = "zathura --synctex-forward=%line%:%column%:%srcfile% %outputfile%"
textopdfforwardjump = "zathura --synctex-forward=%line%:%column%:%srcfile% %outputfile%",
-- markdown
mdoutputext = "pdf",
mdtopdf = "pandoc %docroot% -o %outputfile%",
mdtopdfviewerlaunch = "zathura %outputfile%",
mdtopdfviewerrefresh = "none",
}
end
}