-- See: https://github.com/phaazon/hop.nvim/wiki/Configuration local hop = require("hop") require("hop").setup({}) ------------------------------------------------------------------------------- -- Keybindings local hint = require("hop.hint") vim.keymap.set("", "hf", function() hop.hint_char1({ direction = hint.HintDirection.AFTER_CURSOR, current_line_only = true, }) end) vim.keymap.set("", "hF", function() hop.hint_char1({ direction = hint.HintDirection.BEFORE_CURSOR, current_line_only = true, }) end) vim.keymap.set("", "ht", function() hop.hint_char1({ direction = hint.HintDirection.AFTER_CURSOR, current_line_only = true, hint_offset = -1, }) end) vim.keymap.set("", "hT", function() hop.hint_char1({ direction = hint.HintDirection.BEFORE_CURSOR, current_line_only = true, hint_offset = 1, }) end) vim.keymap.set("", "hc", "HopChar1") vim.keymap.set("", "hw", "HopWord") vim.keymap.set("", "hp", "HopPattern") vim.keymap.set("", "hl", "HopLine") vim.keymap.set("", "hv", "HopVertical")