with status update

This commit is contained in:
2022-10-13 22:19:21 +02:00
parent 90fac0d1ef
commit 635eac655b
8 changed files with 105 additions and 13 deletions

View File

@@ -0,0 +1,13 @@
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,
}