Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jackmort/pommodoro-clock.nvim
yet another pommodoro neovim plugin that displays an ASCII timer in an overlay
https://github.com/jackmort/pommodoro-clock.nvim
nvim
Last synced: about 1 month ago
JSON representation
yet another pommodoro neovim plugin that displays an ASCII timer in an overlay
- Host: GitHub
- URL: https://github.com/jackmort/pommodoro-clock.nvim
- Owner: jackMort
- Created: 2023-01-16T17:41:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-23T09:02:10.000Z (almost 2 years ago)
- Last Synced: 2023-03-10T21:57:56.035Z (almost 2 years ago)
- Topics: nvim
- Language: Lua
- Homepage:
- Size: 2.44 MB
- Stars: 44
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# pommodoro-clock.nvim
![GitHub Workflow Status](http://img.shields.io/github/actions/workflow/status/jackMort/pommodoro-clock.nvim/default.yml?branch=main&style=for-the-badge)
![Lua](https://img.shields.io/badge/Made%20with%20Lua-blueviolet.svg?style=for-the-badge&logo=lua)`Pommodoro-Clock` is a plugin that displays an ASCII timer in an overlay. It helps users stay focused and productive by using the Pomodoro Technique.
Users can set a timer, view a countdown, and pause/resume the timer.![preview image](https://github.com/jackMort/pommodoro-clock.nvim/blob/media/preview.gif?raw=true)
## Installation
```lua
-- Packer
use({
"jackMort/pommodoro-clock.nvim",
config = function()
require("pommodoro-clock").setup({
-- optional configuration
})
end,
requires = {
"MunifTanjim/nui.nvim",
}
})
```## Configuration
`pommodoro-clock.nvim` comes with the following defaults
```lua
{
modes = {
["work"] = { "POMMODORO", 25 },
["short_break"] = { "SHORT BREAK", 5 },
["long_break"] = { "LONG BREAK", 30 },
},
animation_duration = 300,
animation_fps = 30,
say_command = "spd-say -l en -t female3",
sound = "voice", -- set to "none" to disable
}
```## Usage
Plugin exposes the following public functions, here is a sample of the keybindings using [which-key](https://github.com/folke/which-key.nvim).
```lua
local function pc(func)
return "lua require('pommodoro-clock')." .. func .. ""
endp = {
name = "Pommodoro",
w = { pc('start("work")'), "Start Pommodoro" },
s = { pc('start("short_break")'), "Short Break" },
l = { pc('start("long_break")'), "Long Break" },
p = { pc("toggle_pause()"), "Toggle Pause" },
c = { pc("close()"), "Close" },
}
```[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/jackMort)