Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

📄 markdown-preview.nvim

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.


✨ Features

  • 🖥️ 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)

🚀 Requirements


Installation

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
}

Acknowledge

This repository has taken inspiration from this great repository which has unfortunately been archived by the owner recently.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages