preview.nvim/lua
Barrett Ruth acc4dfc850
feat(compiler): debounce compilation in toggle mode
Problem: in toggle mode, each BufWritePost immediately spawned a new
compilation, killing any in-flight process. Rapid saves wasted cycles
on compilers like latexmk.

Solution: add a 500ms debounce timer per buffer. The BufWritePost
callback starts/restarts the timer instead of compiling immediately.
Timers are cleaned up on unwatch and BufWipeout.
2026-03-03 13:33:13 -05:00
..
preview feat(compiler): debounce compilation in toggle mode 2026-03-03 13:33:13 -05:00