mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-14 05:55:59 +01:00
21 lines
338 B
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()
|
|
'';
|
|
};
|
|
}
|