mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-08 05:39:48 +01:00
22 lines
428 B
Nix
22 lines
428 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
inherit (lib.meta) getExe;
|
|
|
|
cfg = config.vim.utility.vim-wakatime;
|
|
in {
|
|
config = mkIf cfg.enable {
|
|
vim = {
|
|
startPlugins = [pkgs.vimPlugins.vim-wakatime];
|
|
|
|
# Wakatime configuration is stored as vim globals.
|
|
globals = {
|
|
"wakatime_CLIPath" = mkIf (cfg.cli-package != null) "${getExe cfg.cli-package}";
|
|
};
|
|
};
|
|
};
|
|
}
|