diff --git a/docs/release-notes/rl-0.8.md b/docs/release-notes/rl-0.8.md index 142edaa7..dc787f9c 100644 --- a/docs/release-notes/rl-0.8.md +++ b/docs/release-notes/rl-0.8.md @@ -148,5 +148,3 @@ - Add [multicursors.nvim](https://github.com/smoka7/multicursors.nvim) to 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. diff --git a/modules/plugins/hydra/config.nix b/modules/plugins/hydra/config.nix index abb3f306..e117cae9 100644 --- a/modules/plugins/hydra/config.nix +++ b/modules/plugins/hydra/config.nix @@ -12,11 +12,39 @@ in { lazy.plugins.hydra = { package = "hydra-nvim"; 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"]; cmd = ["MCstart" "MCvisual" "MCclear" "MCpattern" "MCvisualPattern" "MCunderCursor"]; }; + #keys = [ + # (mkKeymap "n" mappings.mcStart "MCstart" {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 + # ]; }; }; } diff --git a/modules/plugins/hydra/hydra.nix b/modules/plugins/hydra/hydra.nix index 59287a7b..7b67d66b 100644 --- a/modules/plugins/hydra/hydra.nix +++ b/modules/plugins/hydra/hydra.nix @@ -1,7 +1,8 @@ {lib, ...}: let + #inherit (lib) types; inherit (lib.options) mkEnableOption; in { - options.vim.utility.hydra = { - enable = mkEnableOption "utility for creating custom submodes and menus [nvimtools/hydra.nvim]"; + options.vim.hydra = { + enable = mkEnableOption "Creating custom submodes and menus [nvimtools/hydra.nvim]"; }; }