preview.nvim/lua/preview
Barrett Ruth b95493ddee
feat: add detach provider field and vim.g.preview config support
Problem: viewer processes launched via a string[] `open` command were
always killed on buffer deletion with no way to opt out. Configuring
the plugin also required an explicit `setup()` call in a `config`
hook, preventing config from being declared before the plugin loads.

Solution: add a `detach` boolean to `ProviderConfig` that skips
SIGTERM on buffer unload. Auto-call `setup()` from `vim.g.preview`
at module load time, enabling config via lazy.nvim's `init` hook.
Update vimdoc and README accordingly.
2026-03-04 19:22: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 2026-03-04 19:22:32 -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 detach provider field and vim.g.preview config support 2026-03-04 19:22:32 -05:00
log.lua feat: rename 2026-03-02 21:23:40 -05:00
presets.lua fix: stream stderr for long-running providers, clear errors on success (#40) 2026-03-04 16:33:58 -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