mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-09 03:25:58 +01:00
20 lines
337 B
Nix
20 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()
|
|
'';
|
|
};
|
|
}
|