neovim-flake/modules/utility/hop/config.nix
NotAShelf 562230a625
feat: add hop.nvim
modified:   lib/types/plugins.nix
	modified:   modules/utility/default.nix
	new file:   modules/utility/hop/config.nix
	new file:   modules/utility/hop/default.nix
	new file:   modules/utility/hop/hop.nix
2023-04-03 12:11:05 +03:00

21 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()
'';
};
}