preview.nvim/lua
Barrett Ruth 6c1609cba8
feat(reload): add SSE live-reload server module
Problem: HTML output from pandoc has no live-reload; the browser must
be refreshed manually after each compile.

Solution: add lua/preview/reload.lua — a minimal SSE-only TCP server.
start() binds 127.0.0.1:5554 and keeps EventSource connections alive;
broadcast() pushes a reload event to all clients; inject() appends an
EventSource script before </body> (or at EOF) on every compile so
pandoc overwrites do not lose the tag.
2026-03-03 16:23:35 -05:00
..
preview feat(reload): add SSE live-reload server module 2026-03-03 16:23:35 -05:00