Skip to content

thmshmm/marp-preview.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Neovim plugin for previewing markdown presentations using Marp.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages