diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2026-10-06 12:10:52 +0100 |
|---|---|---|
| committer | Lewis Russell <me@lewisr.dev> | 2026-10-16 19:29:39 +0100 |
| commit | d2c8b216198968ae810e54716296065f1945b0ca (patch) | |
| tree | cb02c02e1619db1c64ca13ecfb7764ac7e44f34d /runtime/ftplugin/gitcommit.vim | |
| parent | c390fe813ae622d511ed8b5fa3883b70128dea3a (diff) | |
| download | rneovim-d2c8b216198968ae810e54716296065f1945b0ca.tar.gz rneovim-d2c8b216198968ae810e54716296065f1945b0ca.tar.bz2 rneovim-d2c8b216198968ae810e54716296065f1945b0ca.zip | |
refactor(watch): extract watchdirs into a class
Problem: watchdirs() keeps its state in large nested callbacks in
_watch.lua, which makes its directory tracking logic harder to change.
Solution: Move the backend into its own module and store its state in a
WatchDirs instance. Split setup, event handling and cleanup into
methods. Extend the existing test to cover cancellation while a
directory stat is pending.
AI-assisted
Diffstat (limited to 'runtime/ftplugin/gitcommit.vim')
0 files changed, 0 insertions, 0 deletions