Files
consultant-windows/AppData/Local/nvim/lua/plugins/pomo.lua

22 lines
925 B
Lua

vim.api.nvim_set_keymap('n', '<leader>Tw', '<cmd>TimerStart 25m Work<cr>', { desc = '⏲️ Start 25m [w]ork timer' })
vim.api.nvim_set_keymap('n', '<leader>Tb', '<cmd>TimerStart 5m Break<cr>', { desc = '⏲️ Start 5m [b]reak time' })
vim.api.nvim_set_keymap('n', '<leader>TB', '<cmd>TimerStart 10m Break<cr>', { desc = '⏲️ Start 10m [B]reak time' })
vim.api.nvim_set_keymap('n', '<leader>Ts', '<cmd>TimerStop<cr>', { desc = '⏲️ [s]top timer' })
return {
{
'epwalsh/pomo.nvim', -- https://github.com/epwalsh/pomo.nvim
version = '*', -- Recommended, use latest release instead of latest commit
lazy = true,
cmd = { 'TimerStart', 'TimerRepeat', 'TimerSession' },
dependencies = {
-- Optional, but highly recommended if you want to use the "Default" timer
'rcarriga/nvim-notify',
},
opts = {},
config = function(_, opts)
require('pomo').setup(opts)
end,
},
}