mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-14 16:55:57 +01:00
24 lines
414 B
Nix
24 lines
414 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib;
|
|
with builtins; let
|
|
cfg = config.vim.utility.vim-wakatime;
|
|
in {
|
|
config = mkIf (cfg.enable) {
|
|
vim.startPlugins = [
|
|
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}"''
|
|
}
|
|
'';
|
|
};
|
|
}
|