update
This commit is contained in:
parent
635eac655b
commit
5c82a53361
@ -1,5 +1,3 @@
|
|||||||
local notify = require "github_presence.notify"
|
|
||||||
|
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
function M.set_status(activity)
|
function M.set_status(activity)
|
||||||
@ -7,7 +5,6 @@ function M.set_status(activity)
|
|||||||
local _ = vim.fn.systemlist(
|
local _ = vim.fn.systemlist(
|
||||||
string.format("github-status --message 'Currently editting: %s'", activity.file)
|
string.format("github-status --message 'Currently editting: %s'", activity.file)
|
||||||
)
|
)
|
||||||
notify.info "set status"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
@ -7,7 +7,10 @@ return {
|
|||||||
timer:start(
|
timer:start(
|
||||||
1000,
|
1000,
|
||||||
1000 * 60,
|
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,
|
end,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user