mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-02 11:31:15 +00:00
22 lines
328 B
Nix
22 lines
328 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}:
|
||
|
with lib; let
|
||
|
cfg = config.vim.utility.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()
|
||
|
'';
|
||
|
};
|
||
|
}
|