utility/hop: migrate to setupOpts API

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ibfb235ddd0c8df9b193dc47cc9ffa7056a6a6964
This commit is contained in:
raf 2026-06-20 02:01:04 +03:00
commit fc0ec55fc1
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
2 changed files with 4 additions and 1 deletions

View file

@ -7,6 +7,7 @@
inherit (lib.modules) mkIf;
inherit (lib.nvim.binds) mkKeymap;
inherit (lib.nvim.dag) entryAnywhere;
inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.utility.motion.hop;
@ -20,7 +21,7 @@ in {
];
pluginRC.hop-nvim = entryAnywhere ''
require('hop').setup()
require('hop').setup(${toLuaObject cfg.setupOpts})
'';
};
}

View file

@ -4,6 +4,7 @@
...
}: let
inherit (lib.options) mkEnableOption;
inherit (lib.nvim.types) mkPluginSetupOption;
inherit (config.vim.lib) mkMappingOption;
in {
options.vim.utility.motion.hop = {
@ -12,5 +13,6 @@ in {
};
enable = mkEnableOption "Hop.nvim plugin (easy motion)";
setupOpts = mkPluginSetupOption "hop.nvim" {};
};
}