preview.nvim/spec
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_spec.lua feat(commands): add :Preview open subcommand (#6) 2026-03-03 13:37:02 -05:00
compiler_spec.lua feat(compiler): add configurable error output modes (#14) 2026-03-03 14:57:44 -05:00
diagnostic_spec.lua feat: rename 2026-03-02 21:23:40 -05:00
helpers.lua feat: rename watch → toggle, auto-compile on start, built-in opener 2026-03-02 23:37:44 -05:00
init_spec.lua feat: add statusline function (#10) 2026-03-03 13:37:36 -05:00
minimal_init.lua ci: format 2026-03-01 17:22:59 -05:00
presets_spec.lua refactor(compiler): resolve output before args (#17) 2026-03-03 15:12:14 -05:00
reload_spec.lua feat(reload): add SSE live-reload server module 2026-03-03 16:23:35 -05:00