mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-06-14 08:36:57 +00:00
26 lines
520 B
Nix
26 lines
520 B
Nix
{
|
|
config,
|
|
lib,
|
|
options,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
inherit (lib.nvim.binds) mkKeymap;
|
|
inherit (lib.nvim.dag) entryAnywhere;
|
|
|
|
cfg = config.vim.utility.motion.hop;
|
|
|
|
inherit (options.vim.utility.motion.hop) mappings;
|
|
in {
|
|
config.vim = mkIf cfg.enable {
|
|
startPlugins = ["hop.nvim"];
|
|
|
|
keymaps = [
|
|
(mkKeymap "n" cfg.mappings.hop "<cmd>HopPattern<CR>" {desc = mappings.hop.description;})
|
|
];
|
|
|
|
pluginRC.hop-nvim = entryAnywhere ''
|
|
require('hop').setup()
|
|
'';
|
|
};
|
|
}
|