16 lines
610 B
Lua
16 lines
610 B
Lua
require("hop").setup({})
|
|
--- place this in one of your configuration file(s)
|
|
local hop = require("hop")
|
|
local directions = require("hop.hint").HintDirection
|
|
vim.keymap.set("", "f", function()
|
|
hop.hint_patterns({ direction = directions.AFTER_CURSOR, current_line_only = true }, "\\u")
|
|
end, { remap = true })
|
|
|
|
vim.keymap.set("", "F", function()
|
|
hop.hint_char1({ direction = directions.BEFORE_CURSOR, current_line_only = true })
|
|
end, { remap = true })
|
|
|
|
vim.keymap.set("", "t", function()
|
|
hop.hint_char1({ direction = directions.AFTER_CURSOR, current_line_only = true, hint_offset = 0 })
|
|
end, { remap = true })
|