mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 20:39:18 -08:00
60 lines
1.3 KiB
Nix
60 lines
1.3 KiB
Nix
_: {
|
|
keymaps = [
|
|
{
|
|
key = "f";
|
|
action.__raw = ''
|
|
function()
|
|
require'hop'.hint_char1({
|
|
direction = require'hop.hint'.HintDirection.AFTER_CURSOR,
|
|
current_line_only = true
|
|
})
|
|
end
|
|
'';
|
|
options.remap = true;
|
|
}
|
|
{
|
|
key = "F";
|
|
action.__raw = ''
|
|
function()
|
|
require'hop'.hint_char1({
|
|
direction = require'hop.hint'.HintDirection.BEFORE_CURSOR,
|
|
current_line_only = true
|
|
})
|
|
end
|
|
'';
|
|
options.remap = true;
|
|
}
|
|
{
|
|
key = "t";
|
|
action.__raw = ''
|
|
function()
|
|
require'hop'.hint_char1({
|
|
direction = require'hop.hint'.HintDirection.AFTER_CURSOR,
|
|
current_line_only = true,
|
|
hint_offset = -1
|
|
})
|
|
end
|
|
'';
|
|
options.remap = true;
|
|
}
|
|
{
|
|
key = "T";
|
|
action.__raw = ''
|
|
function()
|
|
require'hop'.hint_char1({
|
|
direction = require'hop.hint'.HintDirection.BEFORE_CURSOR,
|
|
current_line_only = true,
|
|
hint_offset = 1
|
|
})
|
|
end
|
|
'';
|
|
options.remap = true;
|
|
}
|
|
];
|
|
plugins = {
|
|
hop = {
|
|
enable = true;
|
|
autoLoad = true;
|
|
};
|
|
};
|
|
}
|