preview.nvim/lua/preview
Barrett Ruth 59419e6003 refactor(presets): simplify mermaid error parser
Problem: the inline `mermaid` error_parser looped over every line and
used the `Parse error on line N:` header as the message, losing the
useful `Expecting ..., got ...` token detail.

Solution: extract `parse_mermaid` alongside the other parse functions,
use a single `output:match` (mermaid's JISON parser stops at the first
error), and surface the `Expecting ..., got ...` line as the message.
2026-03-05 12:02:32 -05:00
..
commands.lua fix: lifecycle cleanup and defensive runtime checks (#29) 2026-03-04 14:02:16 -05:00
compiler.lua feat: add detach provider field and vim.g.preview config support (#42) 2026-03-04 19:30:56 -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 feat: add plantuml preset (#45) 2026-03-05 09:32:33 -05:00
log.lua feat: rename 2026-03-02 21:23:40 -05:00
presets.lua refactor(presets): simplify mermaid error parser 2026-03-05 12:02:32 -05:00
reload.lua fix(reload): bind SSE server to port 0 for OS-assigned port (#21) 2026-03-03 17:46:04 -05:00