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

21 lines
338 B
Nix

{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.vim.utility.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()
'';
};
}