14 lines
315 B
Lua
14 lines
315 B
Lua
local github = require "github_presence.github"
|
|
local updates = require "github_presence.updates"
|
|
|
|
return {
|
|
start_cron = function()
|
|
local timer = vim.loop.new_timer()
|
|
timer:start(
|
|
1000,
|
|
1000 * 60,
|
|
vim.schedule_wrap(function() github.set_status(updates.last_activity) end)
|
|
)
|
|
end,
|
|
}
|