This is a Neovim plugin for previewing markdown presentations using Marp.
The plugin uses the current directory as input directory.
- Marp CLI
- Node.js (if not bundled with Marp CLI)
Example with Lazy:
{ 'thmshmm/marp-preview.nvim' },With custom theme paths:
require('marp-preview').setup({
themes = {
'../themes/custom.css'
}
})With custom command and options:
require('marp-preview').setup({
command = '/my/marp',
options = {
'--html',
}
})Set keymaps:
local marp = require('marp-preview')
vim.keymap.set('n', '<leader>sp', marp.toggle)