Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lua/treesitter-context.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
local api = vim.api
local uv = vim.uv or vim.loop

local config = require('treesitter-context.config')

Expand Down Expand Up @@ -40,7 +41,7 @@ local function throttle_by_id(f)
vim.schedule(function()
-- Start a timer to check if the function needs to run again
-- after the throttling period.
timers[id] = timers[id] or assert(vim.loop.new_timer())
timers[id] = timers[id] or assert(uv.new_timer())
timers[id]:start(150, 0, function()
scheduled[id] = nil
if waiting[id] then
Expand Down
Loading