a fork of presenterm.nvim by marianozunino
- presenterm (tested with 0.14.0)
- Launch Preview in snacks terminal
- Launch PDF export
Using lazy.nvim
{
"burgr033/presenterm.nvim",
ft = "markdown", -- lazy-load on markdown files
opts = {}, -- optional: pass config options
config = function(_, opts)
require("presenterm").setup(opts)
-- Define mappings only after the plugin is loaded (for markdown)
vim.keymap.set("n", "<localleader>e", function()
require("presenterm").export_pdf()
end, { desc = "Export presentation as PDF", buffer = true })
vim.keymap.set({ "n", "t" }, "<localleader>p", function()
local count = vim.v.count > 0 and vim.v.count or nil
if vim.fn.mode() == "t" then
vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes("<C-\\><C-n>", true, false, true), "n", false)
end
require("presenterm").toggle_preview(count)
end, { desc = "Toggle preview (with optional slide number)", buffer = true }) end
}
No configuration needed. You just need to open up any *.md file
PTExportPDF
launches presenterm with -e to export to pdfPTTogglePreview
toggles a preview window in snacks.terminal
- marianozunino for creating the original presenterm.nvim
- mfontanini for creating the aweseome presenterm
- folke for basically everything