2023-05-10 11:41:17 +00:00
|
|
|
{
|
|
|
|
config,
|
2023-05-10 11:56:49 +00:00
|
|
|
pkgs,
|
2025-01-04 12:29:11 +00:00
|
|
|
lib,
|
2023-05-10 11:41:17 +00:00
|
|
|
...
|
2023-11-07 00:50:27 +00:00
|
|
|
}: let
|
2024-03-24 00:14:39 +00:00
|
|
|
inherit (lib.modules) mkIf;
|
2025-01-04 12:29:11 +00:00
|
|
|
inherit (lib.meta) getExe;
|
2023-11-07 00:50:27 +00:00
|
|
|
|
2023-05-10 11:41:17 +00:00
|
|
|
cfg = config.vim.utility.vim-wakatime;
|
|
|
|
in {
|
2024-07-08 21:57:58 +00:00
|
|
|
config = mkIf cfg.enable {
|
2025-01-04 12:29:11 +00:00
|
|
|
vim = {
|
|
|
|
startPlugins = [pkgs.vimPlugins.vim-wakatime];
|
2023-05-11 13:21:52 +00:00
|
|
|
|
2025-01-04 12:29:11 +00:00
|
|
|
# Wakatime configuration is stored as vim globals.
|
|
|
|
globals = {
|
|
|
|
"wakatime_CLIPath" = mkIf (cfg.cli-package != null) "${getExe cfg.cli-package}";
|
|
|
|
};
|
|
|
|
};
|
2023-05-10 11:41:17 +00:00
|
|
|
};
|
|
|
|
}
|