From e12bf77a9fd8ebe81347532528c084d3a07c366a Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 19 Jul 2022 23:38:55 +0200 Subject: Add util fun for loading most plugin opts --- fnl/config/hop.fnl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'fnl/config/hop.fnl') 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 })" opts) + (nvim.set_keymap :o :F ":lua require'hop'.hint_char1({ direction = require'hop.hint'.HintDirection.BEFORE_CURSOR, current_line_only = true })" 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 })" 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 })" opts) -- cgit v1.2.3-70-g09d2