neovim-flake/modules/utility/motion/hop/config.nix

20 lines
327 B
Nix

{
config,
lib,
...
}:
with lib; let
cfg = config.vim.utility.motion.hop;
in {
config = mkIf cfg.enable {
vim.startPlugins = ["hop-nvim"];
vim.nnoremap = {
"<leader>h" = "<cmd> HopPattern<CR>";
};
vim.luaConfigRC.hop-nvim = nvim.dag.entryAnywhere ''
require('hop').setup()
'';
};
}