Skip to content

Latest commit

 

History

History
135 lines (98 loc) · 3.08 KB

File metadata and controls

135 lines (98 loc) · 3.08 KB
✨ Markdown preview for Vim and Neovim ✨

Powerd By denops.vim🐜

introduction

Preview markdown on your browser.

Main features:

  • 💻 Multi Pratform Support (Mac/Linux/Windows)
  • 🙌 Supports Vim and Neovim
  • 📡 Sync Cursor Position
  • 🏃 Fast asynchronus updates
  • 🎨 Syntax highlight
  • 📊 Render yaml header
  • 📈 Render plantUML
  • ❤️ Simple Dependency and easy to install
  • 🖋 KaTeX Support

install & usage

requirements

Install with lazy.nvim

{
  'vim-denops/denops.vim',
  lazy = false,
},
{
  'kat0h/bufpreview.vim',
  dependencies = { "vim-denops/denops.vim" },
  build = "deno task prepare",
  lazy = false,
},

You don't need to lazy-load the denops plugin, since it loads its script files lazily by default. One issue to note is that deno task prepare modifies the plugin's own repository, which can cause lazy.nvim's update process to fail.

Install with vim-plug

Plug 'vim-denops/denops.vim'
Plug 'kat0h/bufpreview.vim', { 'do': 'deno task prepare' }

Install with dein.vim

call dein#add('vim-denops/denops.vim')
call dein#add('kat0h/bufpreview.vim', {'build': 'deno task prepare'})

Install with minpac

call minpac#add('vim-denops/denops.vim')
call minpac#add('kat0h/bufpreview.vim', {'do': 'silent! !deno task prepare'})

Install with Vundle

Plugin 'vim-denops/denops.vim'
Plugin 'kat0h/bufpreview.vim'

Then prepare the plugin manually where it was installed.

i.e.

cd ~/.vim/bundle/bufpreview.vim && deno task prepare

Commands

" Start the preview
:PreviewMarkdown
" Stop the preview
:PreviewMarkdownStop
" Toggle the window
:PreviewMarkdownToggle

Open preview window automatically

augroup bufpreview
  autocmd!
  autocmd Filetype markdown :PreviewMarkdown
augroup END

Mermaid Support

graph TD
  A[V] --> B[i];
  A[V] --> C[i];
  B[i] --> D[m];
  C[i] --> D[m];
Loading

Special Thanks

License

MIT

this plugin uses these libraly

Author

Kota Kato