2023-03-09 11:28:02 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
2023-04-05 01:14:00 +02:00
|
|
|
cfg = config.vim.utility.motion.hop;
|
2023-03-09 11:28:02 +01:00
|
|
|
in {
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
vim.startPlugins = ["hop-nvim"];
|
|
|
|
|
2023-04-10 13:42:31 +02:00
|
|
|
vim.maps.normal."<leader>h" = {
|
|
|
|
action = "<cmd> HopPattern<CR>";
|
2023-03-09 11:28:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
vim.luaConfigRC.hop-nvim = nvim.dag.entryAnywhere ''
|
|
|
|
require('hop').setup()
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|