fresh
This commit is contained in:
commit
0cbbf662e3
473 files changed
+40489
No files matched your search
@@ -0,0 +1,39 @@
|
||||
return {
|
||||
{
|
||||
"epwalsh/pomo.nvim",
|
||||
cmd = { "TimerStart", "TimerStop", "TimerRepeat" },
|
||||
dependencies = {
|
||||
"rcarriga/nvim-notify",
|
||||
},
|
||||
opts = {
|
||||
notifiers = {
|
||||
{
|
||||
name = "Default",
|
||||
opts = {
|
||||
sticky = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"nvim-lualine/lualine.nvim",
|
||||
optional = true,
|
||||
opts = function(_, opts)
|
||||
local function pomoTimer()
|
||||
local ok, pomo = pcall(require, "pomo")
|
||||
if not ok then
|
||||
return ""
|
||||
end
|
||||
|
||||
local timer = pomo.get_first_to_finish()
|
||||
if timer == nil then
|
||||
return ""
|
||||
end
|
||||
|
||||
return " " .. tostring(timer)
|
||||
end
|
||||
table.insert(opts.sections.lualine_x, { pomoTimer })
|
||||
end,
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user