Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 733 Bytes

README.md

File metadata and controls

44 lines (34 loc) · 733 Bytes

marp-preview.nvim

This is a Neovim plugin for previewing markdown presentations using Marp.

The plugin uses the current directory as input directory.

Requirements

  • Marp CLI
  • Node.js (if not bundled with Marp CLI)

Install

Example with Lazy:

{ 'thmshmm/marp-preview.nvim' },

Usage

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)