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.
- Live preview of
.pikchrdiagrams in your browser - Automatic reload on file changes
- Uses WebAssembly for fast client-side SVG rendering
- Zero external dependencies beyond a modern browser
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,
},- To start the local server run
:Pikchr startand navigate to "http://localhost:1234" - To stop the local server run
:Pikchr stop
