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

@ -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})
'';
};
};
}