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, seconds)
Shows a notice: a line at the top right of the screen that fades on its own.
seconds is how long it stays, the theme’s limits.flash by default.
uji.notify("hello from init.lua")
uji.notify("this one is worth reading", 10)