vimPlugins.aw-watcher-vim: init at 2023-10-09

This commit is contained in:
tsandrini
2024-12-05 14:44:13 +01:00
parent 7c38a1c89d
commit 85c591ae34
3 changed files with 34 additions and 0 deletions
@@ -1037,6 +1037,18 @@ final: prev:
meta.homepage = "https://github.com/yetone/avante.nvim/";
};
aw-watcher-vim = buildVimPlugin {
pname = "aw-watcher-vim";
version = "2023-10-09";
src = fetchFromGitHub {
owner = "ActivityWatch";
repo = "aw-watcher-vim";
rev = "4ba86d05a940574000c33f280fd7f6eccc284331";
sha256 = "0kzpr2dgn80lcqbbf9ig6vx7azz6vbvadi31mxb0qyd91fyiidi3";
};
meta.homepage = "https://github.com/ActivityWatch/aw-watcher-vim/";
};
awesome-vim-colorschemes = buildVimPlugin {
pname = "awesome-vim-colorschemes";
version = "2024-05-18";
@@ -258,6 +258,15 @@ in
}
);
aw-watcher-vim = super.aw-watcher-vim.overrideAttrs {
patches = [
(substituteAll {
src = ./patches/aw-watcher-vim/program_paths.patch;
curl = lib.getExe curl;
})
];
};
bamboo-nvim = super.bamboo-nvim.overrideAttrs {
nvimSkipModule = [
# Requires config table
@@ -0,0 +1,13 @@
diff --git a/plugin/activitywatch.vim b/plugin/activitywatch.vim
index 6986553..7462b02 100644
--- a/plugin/activitywatch.vim
+++ b/plugin/activitywatch.vim
@@ -29,7 +29,7 @@ let s:heartbeat_apiurl = printf('%s/heartbeat?pulsetime=30', s:bucket_apiurl)
let s:http_response_code = {}
function! HTTPPostJson(url, data)
- let l:req = ['curl', '-s', a:url,
+ let l:req = ['@curl@', '-s', a:url,
\ '-H', 'Content-Type: application/json',
\ '-X', 'POST',
\ '-d', json_encode(a:data),