trixy/lua/plugins/nomodoro.lua

33 lines
689 B
Lua
Raw Normal View History

2023-07-30 09:07:54 +02:00
require('nomodoro').setup({
work_time = 25,
break_time = 5,
2023-07-30 09:07:54 +02:00
menu_available = true,
2023-07-30 09:07:54 +02:00
texts = {
on_break_complete = "Break is over!",
on_work_complete = "Take a break!",
2023-07-30 09:07:54 +02:00
status_icon = "",
timer_format = '!%0M:%0S' -- To include hours: '!%0H:%0M:%0S'
},
-- force break time yaaay
2023-07-30 09:07:54 +02:00
on_work_complete = function()
vim.cmd('CellularAutomaton make_it_rain')
end,
-- resume
2023-07-30 09:07:54 +02:00
on_break_complete = function()
vim.cmd('Veil')
end
})
-- Show timer status in lualine, on the right
2023-07-30 09:07:54 +02:00
require('lualine').setup({
sections = {
lualine_x = {
require('nomodoro').status,
}
}
})