added pandoc keybind for markdown
This commit is contained in:
10
lua/config/ftkeybinds.lua
Normal file
10
lua/config/ftkeybinds.lua
Normal 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,
|
||||
})
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
require("config.vars")
|
||||
require("config.keybinds")
|
||||
require("config.ftkeybinds")
|
||||
|
||||
require("config.lazy")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user