Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 824 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 824 Bytes

stopwatch.nvim ⏱️

An extremely simple plugin to keep track of how much time has passed since you started your current instance of Neovim.

Installation

Using packer.nvim:

use 'mrbru12/stopwatch.nvim'

Usage

Example setup as a lualine.nvim custom component:

-- Your lualine.lua configuration file

require('lualine').setup {
    sections = {
        -- This will display the elapsed time beside the file name 
        lualine_c = { 'filename', require('stopwatch').default },
    },
}

The elapsed time is formatted as hh:mm by default, without the seconds, because I find them a bit distracting. However, if you want to change something, you can format it yourself using the plugin functions!