Cih2001/pikchr.nvim

github github
utility
stars 15
issues 0
subscribers 0
forks 1
CREATED

2025-06-08

UPDATED

16 days ago


🖼️ pikchr.nvim

Live-render Pikchr (pronounced "picture") diagrams in your browser, directly from Neovim.

pikchr.nvim is a Neovim plugin that watches .pikchr files and renders them as SVG in your browser using WebAssembly. Every time you save or edit your file, the diagram is automatically updated in real-time.

demo

✨ Features

  • Live preview of .pikchr diagrams in your browser
  • Automatic reload on file changes
  • Uses WebAssembly for fast client-side SVG rendering
  • Zero external dependencies beyond a modern browser

🚀 Installation

Using lazy.nvim:

{
    "Cih2001/pikchr.nvim",
    lazy = false, -- or set true for lazy loading
    cmd = "Pikchr",
    config = function()
        require("pikchr").setup({
            server_port = 1234,
        })
    end,
},

Usage

  • To start the local server run :Pikchr start and navigate to "http://localhost:1234"
  • To stop the local server run :Pikchr stop