fix(util): refactor debouncer

This commit is contained in:
2026-04-19 00:40:24 +02:00
parent a4af5ce66f
commit b4721bb444
5 changed files with 156 additions and 100 deletions
+2 -2
View File
@@ -101,7 +101,7 @@ function Repo:start_watcher()
if err or (filename ~= "index" and filename ~= "HEAD") then
return
end
self.refresh:call()
self.refresh()
end))
self.watcher = watcher
end
@@ -241,7 +241,7 @@ local function refresh(buf)
vim.b[buf].git_status = nil
return
end
repo.refresh:call()
repo.refresh()
end
local M = {}