preview.nvim/lua/preview
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
..
commands.lua refactor(commands): derive completion from dispatch table (#15) 2026-03-03 15:03:48 -05:00
compiler.lua refactor(compiler): resolve output before args (#17) 2026-03-03 15:12:14 -05:00
diagnostic.lua fix(presets): correct error parsers for real compiler output (#11) 2026-03-03 14:14:59 -05:00
health.lua feat: rename watch → toggle, auto-compile on start, built-in opener 2026-03-02 23:37:44 -05:00
init.lua refactor(compiler): resolve output before args (#17) 2026-03-03 15:12:14 -05:00
log.lua feat: rename 2026-03-02 21:23:40 -05:00
presets.lua refactor(compiler): resolve output before args (#17) 2026-03-03 15:12:14 -05:00
reload.lua feat(reload): add SSE live-reload server module 2026-03-03 16:23:35 -05:00