https://github.com/lowitea/aw-watcher.nvim
⌛ A neovim watcher for ActivityWatch time tracker.
https://github.com/lowitea/aw-watcher.nvim
activitywatch-watcher neovim neovim-plugin nvim nvim-plugin productivity
Last synced: 3 months ago
JSON representation
⌛ A neovim watcher for ActivityWatch time tracker.
- Host: GitHub
- URL: https://github.com/lowitea/aw-watcher.nvim
- Owner: lowitea
- License: apache-2.0
- Created: 2024-12-22T12:16:15.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-03-23T13:52:06.000Z (4 months ago)
- Last Synced: 2025-03-23T14:35:33.447Z (4 months ago)
- Topics: activitywatch-watcher, neovim, neovim-plugin, nvim, nvim-plugin, productivity
- Language: Lua
- Homepage:
- Size: 40 KB
- Stars: 12
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ⌛ ActivityWatch NeoVim Watcher

A neovim watcher for [ActivityWatch](https://activitywatch.net/) time tracker. Fully configurable and written entirely in lua. Compatible with modern package managers.
## ✨ Tracks
- 🪵 Selected git branch
- 📝 Edited files
- 💻 Programming language of a file
- 💼 Your projects## 🔥 Status
The project is ready to be used and actively maintained.
## ⚡️ Requirements
- Neovim >= 0.9.0
- curl## 📦 Installation
Install the plugin with your preferred package manager.
Example for [lazy.nvim](https://github.com/folke/lazy.nvim)
```lua
-- lazy.nvim
{
"lowitea/aw-watcher.nvim",
opts = { -- required, but can be empty table: {}
-- add any options here
-- for example:
aw_server = {
host = "127.0.0.1",
port = 5600,
},
},
}
```Example for [packer.nvim](https://github.com/wbthomason/packer.nvim)
```lua
-- packer_init.lua
use { "lowitea/aw-watcher.nvim",
config = function()
require("aw_watcher").setup({
-- required, but can be empty table: {}
-- add any options here
-- for example:
aw_server = {
host = "127.0.0.1",
port = 5600,
},
})
end,
}```
Example for [vim-plug](https://github.com/junegunn/vim-plug)
For `init.lua``
```lua
Plug('lowitea/aw-watcher.nvim', { ['do'] = function()
-- Calling the setup function is required.
-- Bug you can pass into empty table `{}`.
require("aw_watcher").setup({
aw_server = {
host = "127.0.0.1",
port = 5600,
},
})
end })
```Or if you are using `inti.vim`
```vim
Plug 'lowitea/aw-watcher.nvim'
autocmd VimEnter * lua require("aw_watcher").setup({})
```## ⚙️ Configuration
**aw-watcher.nvim** comes with the following defaults:
```lua
{
bucket = {
hostname = nil, -- by default hostname of computer
name = nil, -- by default "aw-watcher-neovim_" .. bucket.hostname
},
aw_server = {
host = "127.0.0.1",
port = 5600,
ssl_enable = false,
pulsetime = 30,
},
}
```## 📖 Analogues
- [aw-watcher-vim](https://github.com/ActivityWatch/aw-watcher-vim) - a plugin for Vim that helped me a lot.