preview.nvim/spec
Barrett Ruth af8bb49122
refactor(compiler): resolve output before args
Problem: presets that need the output path in their args function
(markdown, github) had to recompute it inline, duplicating the same
gsub expression already in the output field.

Solution: resolve output_file first in M.compile, then extend ctx with
output = output_file into a resolved_ctx before evaluating args and cwd.
Presets can now reference ctx.output directly. Add output? to the
preview.Context type annotation.
2026-03-03 15:10:06 -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 2026-03-03 15:10:06 -05:00