feat(nvim): stop knap from polluting workspace
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2025-02-15 19:45:58 -05:00
parent 06f62b8b38
commit 2e5c0e66e8

View file

@ -90,8 +90,8 @@ in {
"--port=6565" "--port=6565"
"--quiet" "--quiet"
"--no-browser" "--no-browser"
"--watch=%outputfile%" "--watch=/tmp/%outputfile%"
"--entry-file=%outputfile%" "--entry-file=/tmp/%outputfile%"
"--wait=800" "--wait=800"
"/tmp" "/tmp"
] ]
@ -103,7 +103,7 @@ in {
-- HTML -- HTML
htmloutputext = 'html', htmloutputext = 'html',
htmltohtml = 'none', htmltohtml = 'none',
htmltohtmlviewerlaunch = "", htmltohtmlviewerlaunch = 'true',
htmltohtmlviewerrefresh = 'none', htmltohtmlviewerrefresh = 'none',
-- Markdown -- Markdown
@ -127,7 +127,12 @@ in {
markdowntohtmlviewerrefresh = 'none', markdowntohtmlviewerrefresh = 'none',
-- LaTeX -- LaTeX
-- TODO: stop from polluting workspace texoutputext = 'pdf',
textopdf = 'cp -rf %docroot% /tmp/%docroot%; pdflatex -interaction=batchmode -halt-on-error -synctex=1 /tmp/%docroot%',
textopdfviewerlaunch = 'sioyek --inverse-search \'nvim --headless -es --cmd "lua require(\'"\'"\'knaphelper\'"\'"\').relayjump(\'"\'"\'%servername%\'"\'"\',\'"\'"\'%1\'"\'"\',%2,%3)"\' --new-window /tmp/%outputfile%',
textopdfviewerrefresh = 'none',
textopdfforwardjump = 'sioyek --inverse-search \'nvim --headless -es --cmd "lua require(\'"\'"\'knaphelper\'"\'"\').relayjump(\'"\'"\'%servername%\'"\'"\',\'"\'"\'%1\'"\'"\',%2,%3)"\' --reuse-window --forward-search-file %srcfile% --forward-search-line %line% /tmp/%docroot%/%outputfile%',
textopdfshorterror = 'A=/tmp/%outputfile% ; LOGFILE="''${A%.pdf}.log" ; rubber-info "$LOGFILE" 2>&1 | head -n 1',
}; };
vim.api.nvim_create_autocmd('BufUnload', { vim.api.nvim_create_autocmd('BufUnload', {