Added HardTime.nvim plugin and added vim.binds.hardtime.enable and .setupOpts options

This commit is contained in:
haskex 2025-04-28 12:16:53 -03:00
commit ea90d2baf3
6 changed files with 54 additions and 0 deletions

View file

@ -142,6 +142,9 @@ isMaximal: {
binds = {
whichKey.enable = true;
cheatsheet.enable = true;
# Remove this after test
hardtime.enable = true;
};
telescope.enable = true;

View file

@ -2,5 +2,6 @@ _: {
imports = [
./which-key
./cheatsheet
./hardtime
];
}

View file

@ -0,0 +1,21 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.nvim.lua) toLuaObject;
inherit (lib.nvim.dag) entryAnywhere;
cfg = config.vim.binds.hardtime;
in {
config = mkIf cfg.enable {
vim = {
startPlugins = ["hardtime-nvim"];
pluginRC.hardtime = entryAnywhere ''
require("hardtime").setup (${toLuaObject cfg.setupOpts})
'';
};
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./hardtime.nix
./config.nix
];
}

View file

@ -0,0 +1,10 @@
{lib, ...}: let
inherit (lib.options) mkEnableOption;
inherit (lib.nvim.types) mkPluginSetupOption;
in {
options.vim.binds.hardtime = {
enable = mkEnableOption "enable hardtime";
setupOpts = mkPluginSetupOption "hardtime-nvim" {};
};
}

View file

@ -614,6 +614,19 @@
"url": "https://github.com/ellisonleao/gruvbox.nvim/archive/a933d8666dad9363dc6908ae72cfc832299c2f59.tar.gz",
"hash": "02r2h0ip2vzmgmv9b36ff2r6br3ql0b9ggzl8ijsyjy7pgiij04y"
},
"hardtime-nvim": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "m4xshen",
"repo": "hardtime.nvim"
},
"branch": "main",
"submodules": false,
"revision": "9aaec65de041bddfc4c0af66919030d2950bcea8",
"url": "https://github.com/m4xshen/hardtime.nvim/archive/9aaec65de041bddfc4c0af66919030d2950bcea8.tar.gz",
"hash": "1rmcl200a4m3ip3xjzhh7ghhh2961xj2mw7yf0w44jpvs98gqb18"
},
"harpoon": {
"type": "Git",
"repository": {