:SessionPlayTimeprints the time you've been in the current session.:PlayTimeprints the total time you've been in neovim (from when you got this plugin).
- vim.pack
vim.pack.add({ "https://github.com/dee9c-git/playtime.nvim" })
require("playtime").setup({})require("playtime").setup({
session_msg = "Session: %s",
total_msg = "Play Time: %s",
session_formatter = function(total_seconds)
local minutes = math.floor(total_seconds / 60)
return string.format("%d minutes", minutes)
end,
total_formatter = function(total_seconds)
local hours = total_seconds / 3600
return string.format("%.1f hours", hours)
end,
})Open an issue if you have some suggestions!