An analogue clock for neovim tui implemented purely in Lua.
- simple and minimal design
- 17 x 11 dimensional character box
- highly flexible position (floated window)
- clock refresh every ~3 minute
- configurable highlights and components (hands, dials) soon
- Neovim >= 0.9.4
- Compatible with Terminal UI (tui) environment
Install the plugin with your preferred package manager:
use "sinabyr/analogue.nvim"-- plugin/analogue.lua
require("analogue").setup({
-- override default options
})Analogue comes with the following default configuration:
fixed_position = 'bottom-right' -- valid options are: "bottom-right", "bottom-left", "top-right", "top-left"
adjusted_position = { -- user customized position of the clock (it's applied after fixed_position)
x = 0,
y = 0,
}
auto_start = true, -- initializes the clock on startup
hide_title = false -- hides Analogue title
border = 'rounded' -- any neovim-valid window border _(single, double, rounded, { "/", "-", "\\", "|" }, {'●'})_Analogue comes with the following commands:
AnalogueOpen: initialize and display the clockAnalogueClose: destroy the clock and clean upAnalogueReset: reset the clock position to presetfixed_position+adjusted_positionAnaloguePosition [pos]: set the clock position toposAnaloguePositionX [num]: move the clocknumunits on x-axis (negative values are supported)AnaloguePositionY [num]: move the clocknumunits on y-axis (negative values are supported)AnalogueHide: hide the clock (soon)
💡 if
auto_startis set to false, then clock can be later initialized withAnalogueOpencommand
(Soon)
(Soon)



