mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-15 15:07:48 +00:00
Compare commits
3 commits
6d35192e37
...
053642122d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
053642122d |
||
|
|
5959f211e0 |
||
|
|
6b0f11006b |
3 changed files with 5 additions and 32 deletions
|
|
@ -148,3 +148,5 @@
|
|||
|
||||
- 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.
|
||||
|
|
|
|||
|
|
@ -12,39 +12,11 @@ in {
|
|||
lazy.plugins.hydra = {
|
||||
package = "hydra-nvim";
|
||||
setupModule = "hydra";
|
||||
#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')
|
||||
'';
|
||||
inherit (cfg) setupOpts;
|
||||
|
||||
event = ["DeferredUIEnter"];
|
||||
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
|
||||
# ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
{lib, ...}: let
|
||||
#inherit (lib) types;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.vim.hydra = {
|
||||
enable = mkEnableOption "Creating custom submodes and menus [nvimtools/hydra.nvim]";
|
||||
options.vim.utility.hydra = {
|
||||
enable = mkEnableOption "utility for creating custom submodes and menus [nvimtools/hydra.nvim]";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue