mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-23 11:58:23 +00:00
23 lines
439 B
Nix
23 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"];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|