-- 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("", "f", function() hop.hint_char1({ direction = hint.HintDirection.AFTER_CURSOR, current_line_only = true, }) end) vim.keymap.set("", "F", function() hop.hint_char1({ direction = hint.HintDirection.BEFORE_CURSOR, current_line_only = true, }) end) vim.keymap.set("", "t", function() hop.hint_char1({ direction = hint.HintDirection.AFTER_CURSOR, current_line_only = true, hint_offset = -1, }) end) vim.keymap.set("", "T", function() hop.hint_char1({ direction = hint.HintDirection.BEFORE_CURSOR, current_line_only = true, hint_offset = 1, }) end) vim.keymap.set("n", "hc", "HopChar1") vim.keymap.set("n", "hw", "HopWord") vim.keymap.set("n", "hp", "HopPattern") vim.keymap.set("n", "hl", "HopLine") vim.keymap.set("n", "hv", "HopVertical")