Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Timers and notices

Both timers run their function as a task, so it can wait.

uji.schedule(callback)

Runs callback once the code that called it has finished. Called from your config, it runs after uji has loaded the whole config and every plugin.

uji.schedule(function()
  uji.notify("config loaded")
end)

uji.defer(seconds, callback)

Runs callback after a delay and returns a function that cancels it.

local cancel = uji.defer(30, function()
  uji.notify("thirty seconds passed")
end)

uji.notify(message)

Shows a notice in the transcript.

uji.notify("hello from init.lua")