mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-24 21:41:04 +00:00
Disable some easy motion key mappings
This commit is contained in:
parent
1ceefb0eae
commit
14b1cdd001
1 changed files with 0 additions and 52 deletions
|
|
@ -27,57 +27,5 @@ return {
|
||||||
mode = { "n", "x", "o" },
|
mode = { "n", "x", "o" },
|
||||||
desc = "Jump to character (EasyMotion-like)",
|
desc = "Jump to character (EasyMotion-like)",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"f",
|
|
||||||
function()
|
|
||||||
require("hop").hint_char1({
|
|
||||||
direction = require("hop.hint").HintDirection.AFTER_CURSOR,
|
|
||||||
current_line_only = true,
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
mode = { "n", "x", "o" },
|
|
||||||
desc = "Hop forward to char",
|
|
||||||
},
|
|
||||||
|
|
||||||
-- EasyMotion-style `F` search (backward, current line only)
|
|
||||||
{
|
|
||||||
"F",
|
|
||||||
function()
|
|
||||||
require("hop").hint_char1({
|
|
||||||
direction = require("hop.hint").HintDirection.BEFORE_CURSOR,
|
|
||||||
current_line_only = true,
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
mode = { "n", "x", "o" },
|
|
||||||
desc = "Hop backward to char",
|
|
||||||
},
|
|
||||||
|
|
||||||
-- `t` behaves like `f` but stops before the target character (forward)
|
|
||||||
{
|
|
||||||
"t",
|
|
||||||
function()
|
|
||||||
require("hop").hint_char1({
|
|
||||||
direction = require("hop.hint").HintDirection.AFTER_CURSOR,
|
|
||||||
current_line_only = true,
|
|
||||||
hint_offset = -1,
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
mode = { "n", "x", "o" },
|
|
||||||
desc = "Hop forward before char",
|
|
||||||
},
|
|
||||||
|
|
||||||
-- `T` behaves like `F` but stops before the target character (backward)
|
|
||||||
{
|
|
||||||
"T",
|
|
||||||
function()
|
|
||||||
require("hop").hint_char1({
|
|
||||||
direction = require("hop.hint").HintDirection.BEFORE_CURSOR,
|
|
||||||
current_line_only = true,
|
|
||||||
hint_offset = 1,
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
mode = { "n", "x", "o" },
|
|
||||||
desc = "Hop backward before char",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue