mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-27 05:59:48 +01:00
30 lines
526 B
Nix
30 lines
526 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.vim.utility.motion.leap;
|
|
in {
|
|
config = mkIf cfg.enable {
|
|
vim.startPlugins = [
|
|
"leap-nvim"
|
|
"vim-repeat"
|
|
];
|
|
|
|
vim.nnoremap = {
|
|
"<leader>h" = "<cmd> HopPattern<CR>";
|
|
};
|
|
|
|
vim.luaConfigRC.leap-nvim = nvim.dag.entryAnywhere ''
|
|
require('leap').add_default_mappings()
|
|
-- TODO: register custom keybinds
|
|
-- require('leap').leap {
|
|
-- opts = {
|
|
-- labels = {}
|
|
-- }
|
|
-- }
|
|
'';
|
|
};
|
|
}
|