Skip to content

Latest commit

 

History

History
41 lines (34 loc) · 1.31 KB

README.md

File metadata and controls

41 lines (34 loc) · 1.31 KB

usage.nvim

Tracks how long you have been using Neovim, like a play-time tracker in video games. Showcase Image


Usage.nvim is a simple plugin to track how many hours you have spent on Neovim. It is inspired by the play-time tracker in video games. The plugin is written in Lua and uses the os.time() function to track the time spent on Neovim. The plugin saves the time spent in a file in the data directory of the plugin.

Features

  • Tracks time spent on Neovim: The plugin tracks the time spent on Neovim and saves it in a file.
  • Nice display UI: The plugin informs you about your total time in either a floating window, vim.notify, or echo.

Installation

You will need to call require("usage").setup() for this plugin to work.

Lazy.nvim
{
    "Aityz/usage.nvim",
    config = function()
        require('usage').setup()
    end
}
Packer.nvim
use {
    'Aityz/usage.nvim',
    config = function()
        require('usage').setup()
    end
}

Configuration

require("usage").setup({
    mode = "float" -- One of "float", "notify", or "print"
})