Skip to content

SinaBYR/analogue.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⏰ analogue.nvim

An analogue clock for neovim tui implemented purely in Lua.

Analogue Screenshot 1 Analogue Screenshot 2 Analogue Screenshot 3 Analogue Screenshot 4

✨ Features

  • 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

⚡️ Requirements

  • Neovim >= 0.9.4
  • Compatible with Terminal UI (tui) environment

📦 Installation

Install the plugin with your preferred package manager:

use "sinabyr/analogue.nvim"

Setup

-- plugin/analogue.lua
require("analogue").setup({
    -- override default options
})

⚙️ Configuration

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, { "/", "-", "\\", "|" }, {'●'})_

🚀 Commands

Analogue comes with the following commands:

  • AnalogueOpen: initialize and display the clock
  • AnalogueClose: destroy the clock and clean up
  • AnalogueReset: reset the clock position to preset fixed_position + adjusted_position
  • AnaloguePosition [pos]: set the clock position to pos
  • AnaloguePositionX [num]: move the clock num units on x-axis (negative values are supported)
  • AnaloguePositionY [num]: move the clock num units on y-axis (negative values are supported)
  • AnalogueHide: hide the clock (soon)

💡 if auto_start is set to false, then clock can be later initialized with AnalogueOpen command

API

(Soon)

🎨 Highlights

(Soon)

About

An analogue clock for neovim environment

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages