add hop
This commit is contained in:
@@ -31,6 +31,7 @@ let
|
||||
./wilder.nix
|
||||
./typst-preview.nix
|
||||
./markdown.nix
|
||||
./hop.nix
|
||||
]);
|
||||
merged =
|
||||
builtins.foldl' (acc: elem: lib.recursiveUpdate acc elem) { } configs;
|
||||
|
||||
32
home-manager/nixvim/hop.nix
Normal file
32
home-manager/nixvim/hop.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
plugins.hop = {
|
||||
enable = true;
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
key = "f";
|
||||
action.__raw = ''
|
||||
function()
|
||||
require'hop'.hint_char1({
|
||||
--direction = require'hop.hint'.HintDirection.AFTER_CURSOR,
|
||||
current_line_only = false,
|
||||
case_insensitive = true,
|
||||
})
|
||||
end
|
||||
'';
|
||||
options.remap = true;
|
||||
}
|
||||
{
|
||||
key = "F";
|
||||
action.__raw = ''
|
||||
function()
|
||||
require'hop'.hint_char1({
|
||||
direction = require'hop.hint'.HintDirection.BEFORE_CURSOR,
|
||||
current_line_only = false
|
||||
})
|
||||
end
|
||||
'';
|
||||
options.remap = true;
|
||||
}
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user