summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fnl/config/hop.fnl20
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)