summaryrefslogtreecommitdiff
path: root/fnl/config/hop.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-07 22:32:53 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-07 22:32:53 +0200
commit71d538630b226da37e4ef21c5a84d6fad5f55421 (patch)
tree5f87a9c1194a556d12ffca79ea98a08d76af548e /fnl/config/hop.fnl
parentfa9a5c6b80b5b0ffdcddc4b1d1c6cfe887d0bb04 (diff)
fix(load plugin): correct loading err
Diffstat (limited to 'fnl/config/hop.fnl')
-rw-r--r--fnl/config/hop.fnl9
1 files changed, 4 insertions, 5 deletions
diff --git a/fnl/config/hop.fnl b/fnl/config/hop.fnl
index d12c650..9f767b6 100644
--- a/fnl/config/hop.fnl
+++ b/fnl/config/hop.fnl
@@ -3,9 +3,8 @@
{autoload {util util
nvim aniseed.nvim}})
-(let [(ok? hop) util.load-plugin :hop]
- (when ok?
- (hop.setup {})))
+(set nvim.set_keymap "n" "s" ":HopChar2<cr>" { :silent true })
+(set nvim.set_keymap "n" "S" ":HopWord<cr>" { :silent true })
-(nvim.set_keymap "n" "s" ":HopChar2<cr>" { :silent true })
-(nvim.set_keymap "n" "S" ":HopWord<cr>" { :silent true })
+(let [hop (util.load-plugin :hop)]
+ (hop.setup {}))