A simple plugin I made to compile markdown files in Neovim using pandoc.
Using lazy.nvim:
-- init.lua:
{
'wwaltb/run-pandoc.nvim'
}
-- plugins/run-pandoc.lua:
return {
'wwaltb/run-pandoc.nvim'
}
run-pandoc.nvim
uses it's compile
command to compile the file open in
the current buffer into a pdf. It will output to the same location as the
original file and with the same name.
Using Lua:
vim.keymap.set('n', '<leader>cp', require("run-pandoc").compile, {})