From cb924c5b8d362b86389ea952957ce4981831d108 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 8 Aug 2022 16:13:12 +0200 Subject: Update hop keymaps --- fnl/config/hop.fnl | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'fnl/config/hop.fnl') diff --git a/fnl/config/hop.fnl b/fnl/config/hop.fnl index 55dd52f..7bba398 100644 --- a/fnl/config/hop.fnl +++ b/fnl/config/hop.fnl @@ -5,8 +5,8 @@ (def- opts {:noremap true :silent true}) -(nvim.set_keymap :n :m ":HopChar2" {:silent true}) -(nvim.set_keymap :n :M ":HopWord" {:silent true}) +(nvim.set_keymap :n :ms ":HopChar2" {:silent true}) +(nvim.set_keymap :n :mS ":HopWord" {:silent true}) (nvim.set_keymap :o :f ":lua require'hop'.hint_char1({ direction = require'hop.hint'.HintDirection.AFTER_CURSOR, current_line_only = true })" opts) @@ -22,3 +22,19 @@ (nvim.set_keymap :o :T ":lua require'hop'.hint_char1({ direction = require'hop.hint'.HintDirection.BEFORE_CURSOR, current_line_only = true, hint_offset = 1 })" opts) + +(nvim.set_keymap :n :f + ":lua require'hop'.hint_char1({ direction = require'hop.hint'.HintDirection.AFTER_CURSOR, current_line_only = true })" + opts) + +(nvim.set_keymap :n :F + ":lua require'hop'.hint_char1({ direction = require'hop.hint'.HintDirection.BEFORE_CURSOR, current_line_only = true })" + opts) + +(nvim.set_keymap :n :t + ":lua require'hop'.hint_char1({ direction = require'hop.hint'.HintDirection.AFTER_CURSOR, current_line_only = true, hint_offset = -1 })" + opts) + +(nvim.set_keymap :n :T + ":lua require'hop'.hint_char1({ direction = require'hop.hint'.HintDirection.BEFORE_CURSOR, current_line_only = true, hint_offset = 1 })" + opts) -- cgit v1.2.3-70-g09d2