return { "phaazon/hop.nvim", branch = "v2", cmd = { "HopChar1MW", "HopChar2MW", }, keys = { "f","F","t","T" }, lazy = true, config = function () require("hop").setup{keys = 'asdfghjkl;'} local hop = require('hop') local directions = require('hop.hint').HintDirection G.map({ {"n", "f", ":HopChar1MW", {noremap = true}}, {"n", "F", ":HopChar2MW", {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 }