nvf/modules/plugins/utility/wakatime/config.nix

26 lines
451 B
Nix
Raw Permalink Normal View History

2023-05-10 11:41:17 +00:00
{
config,
lib,
2023-05-10 11:56:49 +00:00
pkgs,
2023-05-10 11:41:17 +00:00
...
}: let
2024-03-24 00:14:39 +00:00
inherit (lib.modules) mkIf;
inherit (lib.nvim.dag) entryAnywhere;
2023-05-10 11:41:17 +00:00
cfg = config.vim.utility.vim-wakatime;
in {
config = mkIf (cfg.enable) {
vim.startPlugins = [
2023-05-10 11:56:49 +00:00
pkgs.vimPlugins.vim-wakatime
2023-05-10 11:41:17 +00:00
];
2024-03-24 00:14:39 +00:00
vim.configRC.vim-wakatime = entryAnywhere ''
${
if cfg.cli-package == null
then ""
else ''let g:wakatime_CLIPath = "${cfg.cli-package}"''
}
'';
2023-05-10 11:41:17 +00:00
};
}