Compare commits

..

No commits in common. "053642122df9af3b4501fd62e875c952733d81ec" and "6d35192e37b880ff05fe79e8bd48fc79a6ba9d59" have entirely different histories.

3 changed files with 32 additions and 5 deletions

View file

@ -148,5 +148,3 @@
- Add [multicursors.nvim](https://github.com/smoka7/multicursors.nvim) to - Add [multicursors.nvim](https://github.com/smoka7/multicursors.nvim) to
available plugins, under `vim.utility.multicursors`. available plugins, under `vim.utility.multicursors`.
- Add [hydra.nvim](https://github.com/nvimtools/hydra.nvim) as dependency for
`multicursors.nvim` and lazy loads by default.

View file

@ -12,11 +12,39 @@ in {
lazy.plugins.hydra = { lazy.plugins.hydra = {
package = "hydra-nvim"; package = "hydra-nvim";
setupModule = "hydra"; setupModule = "hydra";
inherit (cfg) setupOpts; #inherit (cfg) setupOpts;
setupOpts = {
debug = false;
exit = false;
foreign_keys = null;
color = "red";
timeout = false;
invoke_on_body = false;
hint = {
show_name = true;
position = "bottom";
offset = 0;
float_opts = {};
};
on_enter = null;
on_exit = null;
on_key = null;
};
after = ''
-- custom lua code to run after plugin is loaded
print('multicursors loaded')
'';
event = ["DeferredUIEnter"]; event = ["DeferredUIEnter"];
cmd = ["MCstart" "MCvisual" "MCclear" "MCpattern" "MCvisualPattern" "MCunderCursor"]; cmd = ["MCstart" "MCvisual" "MCclear" "MCpattern" "MCvisualPattern" "MCunderCursor"];
}; };
#keys = [
# (mkKeymap "n" mappings.mcStart "<cmd>MCstart<cr>" {desc = "Create a selection for selected text or word under the cursor [multicursors.nvim]";})
#];
# dependencies = [
# config.vim.lazy.plugins.hydra # hydra.nvim - Create custom submodes and menus
# ];
}; };
}; };
} }

View file

@ -1,7 +1,8 @@
{lib, ...}: let {lib, ...}: let
#inherit (lib) types;
inherit (lib.options) mkEnableOption; inherit (lib.options) mkEnableOption;
in { in {
options.vim.utility.hydra = { options.vim.hydra = {
enable = mkEnableOption "utility for creating custom submodes and menus [nvimtools/hydra.nvim]"; enable = mkEnableOption "Creating custom submodes and menus [nvimtools/hydra.nvim]";
}; };
} }