preview.nvim/lua
Barrett Ruth b00b169bf5
feat(compiler): debounce compilation in toggle mode (#8)
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:42:44 -05:00
..
preview feat(compiler): debounce compilation in toggle mode (#8) 2026-03-03 13:42:44 -05:00