A minimal Neovim plugin to preview Markdown files in a terminal split using glow
. Designed for speed, simplicity, and seamless Lazy.nvim integration. The goals is for me to quickly view the documentation instead of used as a markdown previewer as one would use as if the vscode in-built markdown.
- π₯οΈ Previews the current buffer using
glow
in a horizontal terminal split - π§ Smart use of tempfiles β no file saving needed
- π Lazy-loaded only when needed (
:MarkdownPreview
)
- Neovim 0.9+
- glow installed and available in your
$PATH
Install using the nvim as
{
"Isaac7777-cpu/markdown-preview.nvim",
name = "markdown-preview.nvim", -- Optional name used internally
cond = function()
if vim.fn.executable("glow") ~= 1 then
vim.notify("[markdown-preview.nvim] Skipped: glow not found in PATH", vim.log.levels.WARN)
return false
end
return true
end,
config = function()
require("markdown_preview") -- loads lua/markdown_preview/init.lua
vim.keymap.set("n", "kK", "<cmd>DocumentationPreview<CR>",
{ desc = "Full Documentation Preview with Glow to see a nice layout of documentation." })
end
}
This repository has taken inspiration from this great repository which has unfortunately been archived by the owner recently.