Skip to content

Asthestarsfalll/clock.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

clock.nvim

Install

{ "Asthestarsfalll/clock.nvim" }

Optionally, install nvim-notify for more prominent notifications.

Usage

require("clock").setup()

Options

require("clock").setup({
    default_inter = 1,
    default_info = "ticktack! ticktack! ticktack!",
    restart = false,
    icon = "",
})

Commands

ClockMe - Set Clock Event, Format: ClockMe ['EventInfo'][interval][!], all the arguments are optional. ! means wether to repeat timing.

example:

-- this will remind you to eat lunch after every 10 minutes
ClockMe 'Eat Lunch' 10!

-- this will remind you to eat lunch after 10 minutes once
ClockMe 'Eat Lunch' 10

-- this will remind you to eat lunch after every default interval 
ClockMe 'Eat Lunch'!

-- this will remind you to do sth after 10 minutes
ClockMe 10

-- this will remind you to do sth according to default setting
ClockMe

ClockWhen - Display time remaining until next Clock.

Gotit - Dismissing any notifications and restarting the timer, otherwise the timer will be blocked.

ClockAgain - Restart last Clock Event.

TODO

  • Support store clock events
  • Show remaining time on statusline
  • Support multiple clock events
  • Stats of detail data

Acknowledgment

clock.nvim is inspired by and adapted from stand.vim

About

Clock utils for nvim

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages