mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-11 16:05:30 +00:00
22 lines
439 B
Nix
22 lines
439 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
cfg = config.vim.hydra;
|
|
in {
|
|
config = mkIf cfg.enable {
|
|
vim = {
|
|
startPlugins = [];
|
|
lazy.plugins.hydra = {
|
|
package = "hydra.nvim";
|
|
setupModule = "hydra";
|
|
inherit (cfg) setupOpts;
|
|
|
|
event = ["DeferredUIEnter"];
|
|
cmd = ["MCstart" "MCvisual" "MCclear" "MCpattern" "MCvisualPattern" "MCunderCursor"];
|
|
};
|
|
};
|
|
};
|
|
}
|