mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 23:16:46 +00:00
8d5f23035d
* statix, deadnix, alejandra * _file * _module.args * concatStringsSep "\n" -> concatLines concatStringsSep "\n" map -> concatMapStringsSep "\n" * mkShell nativeBuildInputs -> packages
26 lines
449 B
Nix
26 lines
449 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
inherit (lib.nvim.dag) entryAnywhere;
|
|
|
|
cfg = config.vim.utility.vim-wakatime;
|
|
in {
|
|
config = mkIf cfg.enable {
|
|
vim.startPlugins = [
|
|
pkgs.vimPlugins.vim-wakatime
|
|
];
|
|
|
|
vim.configRC.vim-wakatime = entryAnywhere ''
|
|
${
|
|
if cfg.cli-package == null
|
|
then ""
|
|
else ''let g:wakatime_CLIPath = "${cfg.cli-package}"''
|
|
}
|
|
'';
|
|
};
|
|
}
|