mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-06-22 12:33:29 +00:00
utility/hop: migrate to setupOpts API
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ibfb235ddd0c8df9b193dc47cc9ffa7056a6a6964
This commit is contained in:
parent
f3c3353ced
commit
fc0ec55fc1
2 changed files with 4 additions and 1 deletions
|
|
@ -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})
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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" {};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue