pending.nvim/lua/pending/sync
Barrett Ruth 27190fd26c refactor(sync): extract shared utilities into sync/util.lua
Problem: sync epilogue code (`s:save()`, `_recompute_counts()`,
`buffer.render()`) and `fmt_counts` were duplicated across `gcal.lua`
and `gtasks.lua`. The concurrency guard lived in `oauth.lua`, coupling
non-OAuth backends to the OAuth module.

Solution: create `sync/util.lua` with `async`, `system`, `with_guard`,
`finish`, and `fmt_counts`. Delegate from `oauth.lua` and replace
duplicated code in both backends. Add per-backend `auth()` and
`auth_complete()` methods to `gcal.lua` and `gtasks.lua`.
2026-03-08 19:50:04 -04:00
..
gcal.lua refactor(sync): extract shared utilities into sync/util.lua 2026-03-08 19:50:04 -04:00
gtasks.lua refactor(sync): extract shared utilities into sync/util.lua 2026-03-08 19:50:04 -04:00
oauth.lua refactor(types): extract inline anonymous types into named classes 2026-03-08 19:47:18 -04:00
util.lua refactor(types): extract inline anonymous types into named classes 2026-03-08 19:47:18 -04:00