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.
.pikchr
diagrams in your browserUsing lazy.nvim:
{
"Cih2001/pikchr.nvim",
lazy = false, -- or set true for lazy loading
cmd = "Pikchr",
config = function()
require("pikchr").setup({
server_port = 1234,
})
end,
},
:Pikchr start
and navigate to "http://localhost:1234":Pikchr stop