dev: move modules/utilty/hop -> modules/utility/motion/hop

This commit is contained in:
NotAShelf 2023-04-05 02:14:00 +03:00
commit b76eb174f1
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22
3 changed files with 3 additions and 4 deletions

View file

@ -0,0 +1,20 @@
{
config,
lib,
...
}:
with lib; let
cfg = config.vim.utility.motion.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()
'';
};
}

View file

@ -0,0 +1,6 @@
_: {
imports = [
./hop.nix
./config.nix
];
}

View file

@ -0,0 +1,13 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.vim.utility.motion.hop;
in {
options.vim.utility.motion.hop = {
enable = mkEnableOption "Enable Hop.nvim plugin (easy motion)";
};
}