diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-08-08 16:13:12 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-08-08 16:13:12 +0200 |
commit | cb924c5b8d362b86389ea952957ce4981831d108 (patch) | |
tree | 44ada114d2cca8f8846e3bbfc59c8c5b7aad53de /fnl | |
parent | 15dff48266b7d1880725b2d7edecded9fe68622f (diff) |
Update hop keymaps
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/config/hop.fnl | 20 |
1 files changed, 18 insertions, 2 deletions
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<cr>" {:silent true}) -(nvim.set_keymap :n :M ":HopWord<cr>" {:silent true}) +(nvim.set_keymap :n :ms ":HopChar2<cr>" {:silent true}) +(nvim.set_keymap :n :mS ":HopWord<cr>" {:silent true}) (nvim.set_keymap :o :f ":lua require'hop'.hint_char1({ direction = require'hop.hint'.HintDirection.AFTER_CURSOR, current_line_only = true })<CR>" 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 })<CR>" opts) + +(nvim.set_keymap :n :f + ":lua require'hop'.hint_char1({ direction = require'hop.hint'.HintDirection.AFTER_CURSOR, current_line_only = true })<CR>" + opts) + +(nvim.set_keymap :n :F + ":lua require'hop'.hint_char1({ direction = require'hop.hint'.HintDirection.BEFORE_CURSOR, current_line_only = true })<CR>" + 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 })<CR>" + 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 })<CR>" + opts) |