summaryrefslogtreecommitdiff
path: root/fnl/config/hop.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/config/hop.fnl')
-rw-r--r--fnl/config/hop.fnl6
1 files changed, 4 insertions, 2 deletions
diff --git a/fnl/config/hop.fnl b/fnl/config/hop.fnl
index 678b5e2..a2aff1e 100644
--- a/fnl/config/hop.fnl
+++ b/fnl/config/hop.fnl
@@ -1,8 +1,7 @@
;; Hopping in text.
(module config.hop {autoload {: util nvim aniseed.nvim}})
-(let [hop (util.load-plugin :hop)]
- (hop.setup {}))
+(util.use-config :hop {})
(def- opts {:noremap true :silent true})
@@ -11,12 +10,15 @@
(nvim.set_keymap :o :f
":lua require'hop'.hint_char1({ direction = require'hop.hint'.HintDirection.AFTER_CURSOR, current_line_only = true })<CR>"
opts)
+
(nvim.set_keymap :o :F
":lua require'hop'.hint_char1({ direction = require'hop.hint'.HintDirection.BEFORE_CURSOR, current_line_only = true })<CR>"
opts)
+
(nvim.set_keymap :o :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 :o :T
":lua require'hop'.hint_char1({ direction = require'hop.hint'.HintDirection.BEFORE_CURSOR, current_line_only = true, hint_offset = 1 })<CR>"
opts)