mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 09:49:48 +01:00
feat: provide wakatime-cli package option
This commit is contained in:
parent
f18155a05e
commit
859da274b6
2 changed files with 19 additions and 1 deletions
|
@ -12,5 +12,13 @@ in {
|
||||||
vim.startPlugins = [
|
vim.startPlugins = [
|
||||||
pkgs.vimPlugins.vim-wakatime
|
pkgs.vimPlugins.vim-wakatime
|
||||||
];
|
];
|
||||||
|
|
||||||
|
vim.configRC.vim-wakatime = nvim.dag.entryAnywhere ''
|
||||||
|
${
|
||||||
|
if cfg.cli-package == null
|
||||||
|
then ""
|
||||||
|
else ''let g:wakatime_CLIPath = "${cfg.cli-package}"''
|
||||||
|
}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,17 @@
|
||||||
{lib, ...}:
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with builtins; {
|
with builtins; {
|
||||||
options.vim.utility.vim-wakatime = {
|
options.vim.utility.vim-wakatime = {
|
||||||
enable = mkEnableOption "Enable vim-wakatime";
|
enable = mkEnableOption "Enable vim-wakatime";
|
||||||
|
|
||||||
|
cli-package = mkOption {
|
||||||
|
type = with types; nullOr package;
|
||||||
|
default = pkgs.wakatime;
|
||||||
|
description = "The package that should be used for wakatime-cli. Set as null to use the default path in `$XDG_DATA_HOME`";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue