52 lines
1.2 KiB
Lua
52 lines
1.2 KiB
Lua
return {
|
|
"phaazon/hop.nvim",
|
|
branch = "v2",
|
|
keys = {
|
|
"f","F","t","T",
|
|
"<c-f>"
|
|
},
|
|
lazy = true,
|
|
config = function ()
|
|
require("hop").setup{keys = 'asdfghjkl;'}
|
|
local hop = require('hop')
|
|
local directions = require('hop.hint').HintDirection
|
|
G.map({
|
|
{"n", "<c-f>", ":HopChar2MW<CR>", {noremap = true}},
|
|
{"n", "f",
|
|
function ()
|
|
hop.hint_char1({
|
|
direction = directions.AFTER_CURSOR,
|
|
current_line_only = true
|
|
})
|
|
end, {noremap = true}
|
|
},
|
|
{"n", "F",
|
|
function ()
|
|
hop.hint_char1({
|
|
direction = directions.BEFORE_CURSOR,
|
|
current_line_only = true
|
|
})
|
|
end, {noremap = true}
|
|
},
|
|
{"n", "t",
|
|
function ()
|
|
hop.hint_char1({
|
|
direction = directions.AFTER_CURSOR,
|
|
current_line_only = true,
|
|
hint_offset = -1
|
|
})
|
|
end, {noremap = true}
|
|
},
|
|
{"n", "T",
|
|
function ()
|
|
hop.hint_char1({
|
|
direction = directions.BEFORE_CURSOR,
|
|
current_line_only = true,
|
|
hint_offset = -1
|
|
})
|
|
end, {noremap = true}
|
|
},
|
|
})
|
|
end
|
|
}
|