preview.nvim/lua/preview
Barrett Ruth 99263dec9f
refactor(compiler): resolve output before args (#17)
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:12:14 -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