From 508730a481c6d12b892b26379c3b4615235ea859 Mon Sep 17 00:00:00 2001 From: tiyn Date: Sat, 9 Dec 2023 01:37:28 +0100 Subject: [PATCH] nvim: markdown previews now feature a toc --- .config/nvim/lua/plugins/knap.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/nvim/lua/plugins/knap.lua b/.config/nvim/lua/plugins/knap.lua index 43b17f4..6eac96e 100644 --- a/.config/nvim/lua/plugins/knap.lua +++ b/.config/nvim/lua/plugins/knap.lua @@ -14,7 +14,7 @@ return { textopdfforwardjump = "zathura --synctex-forward=%line%:%column%:%srcfile% %outputfile%", -- markdown mdoutputext = "pdf", - mdtopdf = "pandoc %docroot% -V colorlinks=true -V linkcolor=blue -V urlcolor=red -V toccolor=gray -o %outputfile%", + 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%",