Tracks how long you have been using Neovim, like a play-time tracker in video games.
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.
- 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
, orecho
.
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
}
require("usage").setup({
mode = "float" -- One of "float", "notify", or "print"
})