mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-05 04:51:14 +00:00
21 lines
337 B
Nix
21 lines
337 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.vim.utility.motion.hop;
|
|
in {
|
|
config = mkIf cfg.enable {
|
|
vim.startPlugins = ["hop-nvim"];
|
|
|
|
vim.maps.normal."<leader>h" = {
|
|
action = "<cmd> HopPattern<CR>";
|
|
};
|
|
|
|
vim.luaConfigRC.hop-nvim = nvim.dag.entryAnywhere ''
|
|
require('hop').setup()
|
|
'';
|
|
};
|
|
}
|