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

@ -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" {};
};
}