Skip to content

pomodoro.nvim - is a simple pomodoro plugin for nvim written in lua

License

Notifications You must be signed in to change notification settings

kedde/pomodoro.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pomodoro.nvim

A plugin written in lua, this is my first attempt to create a nvim-plugin.

Install

Install using nvim package manager

-- packer
use "kedde/pomodoro.nvim"

Usage

This plugin can be used with a status line, like lualine or a notify plugin like nvim-notify or a combination of them

setup for lualine

e4b854 highlight NotifyERRORBorder guifg=#8A1F1F TODO: print("    ")

setup for nvim-notify

Running

 nvim --cmd "set rtp+=$(pwd)" .

## running nvim without vimrc files and plugins
nvim -u NONE 

## running nvim without vimrc but still plugins
nvim -u NORC 

## start neovim no plugins
nvim --noplugin

possible to use package manager to develop as well

packer:

-- Local plugins can be included
use '~/code/pomodoro.nvim'

ROADMAP

  • callback - can be used with lua line or notifier
  • posible to change the length of breaks and pomodoros configurable
  • define callback frequency - possible to update lualine etc
  • lua line - example
  • Get times in mm:ss?
  • lua test - started
  • log - instead of print
  • change the timer code - thinking of the -1 hack - can I just using something like
    vim.defer_fn
  • update usage description
  • check - lua style
  • Persist state between neovim instances - this will require we save date and time? sql-lite database - tami0 made a lua implemation?

would this be enough:

number pomodoro time work - item
1 PomodoroStarted yyyy-mm-dd-hh-mm-ss work - item
2 PomodoroStopped yyyy-mm-dd-hh-mm-ss
3 PomodoroBreak yyyy-mm-dd-hh-mm-ss

lua tricks

print(vim.inspect(luaTbl))

references

About

pomodoro.nvim - is a simple pomodoro plugin for nvim written in lua

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published