Skip to content

A simple Neovim plugin to track how many hours you have spent programming using Neovim.

Notifications You must be signed in to change notification settings

Aityz/usage.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

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"
})

About

A simple Neovim plugin to track how many hours you have spent programming using Neovim.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages