neo2005/config/plugins/aw/default.nix

28 lines
663 B
Nix

{ pkgs, ... }: {
# Activity watch for vim to keep track of time in files. Fuck wakatime
extraPlugins = with pkgs; [
{
plugin = pkgs.vimUtils.buildVimPlugin {
pname = "aw-watcher-vim";
version = "1.0.0"; # dummy version
src = pkgs.fetchFromGitHub {
owner = "ActivityWatch";
repo = "aw-watcher-vim";
rev = "4ba86d05a940574000c33f280fd7f6eccc284331";
hash = "sha256-I7YYvQupeQxWr2HEpvba5n91+jYvJrcWZhQg+5rI908=";
};
};
}
];
autoCmd = [
# Start aw-watcher-vim on startup
{
command = ":AWStart";
event = [
"VimEnter"
];
}
];
}