fix(test): hopefully they work

This commit is contained in:
Barrett Ruth 2026-02-01 23:41:59 -05:00
parent 655e032471
commit 8f5e8e3b17
4 changed files with 37 additions and 20 deletions

View file

@ -75,12 +75,11 @@ end
---@param bufnr integer
---@return fun()
local function create_debounced_highlight(bufnr)
---@type uv_timer_t?
local timer = nil
local timer = nil ---@type table?
return function()
if timer then
timer:stop()
timer:close()
timer:stop() ---@diagnostic disable-line: undefined-field
timer:close() ---@diagnostic disable-line: undefined-field
timer = nil
end
local t = vim.uv.new_timer()