added pandoc keybind for markdown

This commit is contained in:
THEON-1
2025-10-22 16:50:54 +02:00
parent 1f0de53ab2
commit 5dab0b736d
2 changed files with 11 additions and 0 deletions

10
lua/config/ftkeybinds.lua Normal file
View File

@@ -0,0 +1,10 @@
vim.api.nvim_create_autocmd("FileType", {
pattern = { "markdown" },
callback = function()
vim.schedule(function()
vim.keymap.set("n", "<F5>", "<CMD>!pandoc %:p -o %:p:r.pdf --verbose &> .pandoc-log <CR>", {silent = true})
end)
end,
})