fix(util): refactor debouncer
This commit is contained in:
+2
-2
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user