https://github.com/mgerb/metrics.nvim
https://github.com/mgerb/metrics.nvim
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mgerb/metrics.nvim
- Owner: mgerb
- Created: 2023-07-13T14:08:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-25T13:37:32.000Z (about 3 years ago)
- Last Synced: 2025-05-07T21:11:35.945Z (over 1 year ago)
- Language: Lua
- Size: 4.88 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# metrics.nvim
- tracks time spent in your editor
- logs locally to sqlite3 database
## Requirements
- sqlite3
## Commands
- `MetricsDebug` - prints out some debug information for current time tracking session
- `MetricsGetTime` - prints out total time spent on your current branch
## Installing
### Packer
```lua
use("mgerb/metrics.nvim")
```
## Setup
```lua
local metrics = require("metrics")
local config = {}
metrics.setup(config)
```
### Default Config
```lua
{
db_filename = 'metrics.db'
}
```
## Credits
Thanks, @justinrassier, for writing most of this code!