hop
This commit is contained in:
@@ -190,6 +190,32 @@
|
|||||||
key = "<leader>rI";
|
key = "<leader>rI";
|
||||||
action = ":Refactor inline_func ";
|
action = ":Refactor inline_func ";
|
||||||
options.desc = "Inline function";
|
options.desc = "Inline function";
|
||||||
|
}
|
||||||
|
# hop
|
||||||
|
{
|
||||||
|
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;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,31 +2,5 @@
|
|||||||
plugins.hop = {
|
plugins.hop = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
keymaps = [
|
# keybinds moved to config.nix, my merging method sux and having multiple lists overrides the other
|
||||||
{
|
|
||||||
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