2023-05-10 13:41:17 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
2023-05-10 13:56:49 +02:00
|
|
|
pkgs,
|
2023-05-10 13:41:17 +02:00
|
|
|
...
|
2023-11-07 01:50:27 +01:00
|
|
|
}: let
|
2024-03-24 01:14:39 +01:00
|
|
|
inherit (lib.modules) mkIf;
|
2023-11-07 01:50:27 +01:00
|
|
|
|
2023-05-10 13:41:17 +02:00
|
|
|
cfg = config.vim.utility.vim-wakatime;
|
|
|
|
in {
|
2024-07-08 23:57:58 +02:00
|
|
|
config = mkIf cfg.enable {
|
2024-07-20 10:30:48 +02:00
|
|
|
vim.startPlugins = [pkgs.vimPlugins.vim-wakatime];
|
2023-05-11 15:21:52 +02:00
|
|
|
|
2024-07-20 10:30:48 +02:00
|
|
|
vim.pluginRC.vim-wakatime = mkIf (cfg.cli-package != null) ''
|
|
|
|
vim.g.wakatime_CLIPath = "${cfg.cli-package}"
|
2023-05-11 15:21:52 +02:00
|
|
|
'';
|
2023-05-10 13:41:17 +02:00
|
|
|
};
|
|
|
|
}
|