nixos-config/config/programs/vim/modules/ux/hop.nix

16 lines
356 B
Nix
Raw Normal View History

2023-04-14 12:12:41 +00:00
{pkgs, ...}: {
output.plugins = with pkgs.vimPlugins; [hop-nvim];
plugin.setup.hop = {
case_insensitive = true;
char2_fallback_key = "<CR>";
quit_key = "<Etc>";
};
vim.keybindings.keybindings.f = {
command = "<cmd>lua require('hop').hint_char2()<cr>";
options.silent = true;
label = "nvim-hop char2";
mode = "";
};
}