Skip to content

Commit 49a4c4e

Browse files
feat(nixvim): added hardtime extension for better neovim hygeine
1 parent 5104fde commit 49a4c4e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
lib,
3+
config,
4+
...
5+
}:
6+
let
7+
name = "hardtime";
8+
cfg = config.home.development.neovim.plugins.${name};
9+
in
10+
{
11+
options.home.development.neovim.plugins.${name} = {
12+
enable = lib.mkOption {
13+
type = lib.types.bool;
14+
default = true;
15+
description = "Enable ${name} plugin for neovim";
16+
};
17+
};
18+
19+
config = lib.mkIf cfg.enable {
20+
programs.nixvim = {
21+
# https://github.com/m4xshen/hardtime.nvim
22+
plugins.hardtime = {
23+
enable = true;
24+
};
25+
};
26+
};
27+
}

0 commit comments

Comments
 (0)