Skip to content

hellgrenj/popclock.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

popclock.nvim

I really enjoy distraction-free coding in folke/zen-mode, but every now and then, I need to make sure I'm not late for my next meeting (…sigh). With this simple plugin, I can toggle a small, minimalistic clock without exiting zen-mode—and without having the entire screen move around, breaking my focus on the code I'm working on.

Features

  • Display a real-time clock in a floating window.
  • Customize position: center, top, bottom, corners, or relative to the cursor.
  • Set foreground and background colors.
  • Toggle the clock with a keybinding.

Installation

Using Lazy.nvim:

{
  "hellgrenj/popclock.nvim",
  config = function()
    require("popclock").setup({
      key_binding = "<leader>kl", -- Default: <leader>kl
      position = "top",       -- Default: 'top' (center, top, topleft, topright, bottom, bottomleft, bottomright, cursor) 
      fgcolor = "#b5befe",       -- Default: '#b5befe'
      bgcolor = nil,       -- Default: nil (transparent)
    })
  end,
}

About

Minimalist Clock for Focused Coding Sessions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages