Skip to content

Commit

Permalink
minor type improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielkonge committed Dec 21, 2023
1 parent 9a4b835 commit fca3b88
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/ibl/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,15 @@ M.refresh_all = function()
end
end

---@class ibl.debounced_refresh_object
---@field timers table<number, uv_timer_t>
---@field queued_buffers table<number, boolean>

local debounced_refresh = setmetatable({
timers = {},
queued_buffers = {},
}, {
---@param self ibl.debounced_refresh_object
---@param bufnr number
__call = function(self, bufnr)
bufnr = utils.get_bufnr(bufnr)
Expand Down

0 comments on commit fca3b88

Please sign in to comment.