This commit is contained in:
Kasper Juul Hermansen 2022-10-14 21:52:49 +02:00
parent 635eac655b
commit 5c82a53361
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,3 @@
local notify = require "github_presence.notify"
local M = {}
function M.set_status(activity)
@ -7,7 +5,6 @@ function M.set_status(activity)
local _ = vim.fn.systemlist(
string.format("github-status --message 'Currently editting: %s'", activity.file)
)
notify.info "set status"
end
return M

View File

@ -7,7 +7,10 @@ return {
timer:start(
1000,
1000 * 60,
vim.schedule_wrap(function() github.set_status(updates.last_activity) end)
vim.schedule_wrap(function()
if updates.last_activity == nil then return end
github.set_status(updates.last_activity)
end)
)
end,
}