| name | blogkit-md.nvim |
|---|---|
| description | A Neovim plugin that launches a live preview of the current markdown buffer using @san-siva/blogkit-md-cli |
A Neovim plugin that launches a live preview of the current markdown buffer using @san-siva/blogkit-md-cli.
demo.mov
| Requirement | Version |
|---|---|
| Neovim | 0.9+ |
| Node.js | LTS |
| blogkit-md-cli | latest |
{
'san-siva/blogkit-md.nvim',
}use { 'san-siva/blogkit-md.nvim' }| Command | Description |
|---|---|
:BlogkitPreview |
Start a live preview of the current buffer |
:BlogkitPreviewStop |
Stop the preview for the current buffer |
:BlogkitPreviewStopAll |
Stop all running previews |
- Open a markdown file in Neovim.
- Run
:BlogkitPreview— the browser opens automatically. - Edit and save the file; the browser reloads on every write.
- Run
:BlogkitPreviewStopwhen done, or:BlogkitPreviewStopAllto stop all running previews.
The plugin invokes the blogkit-md CLI with the current buffer's file path. The CLI starts a pre-built Next.js server, opens the browser, and watches the file for changes — reloading the browser automatically on every save via SSE.
MIT
- Author: Santhosh Siva
- License: MIT