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.
- 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.
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,
}