summaryrefslogtreecommitdiff
path: root/fnl/config
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-04 22:36:19 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-04 22:36:19 +0200
commit947ac0878b5a7ad99f71f5f4263ef28980215d17 (patch)
treef1a353056011a0ee32472cd3608f516fe3d28740 /fnl/config
parent97d82e179f6849dbdf979f087aaf7dcca53f8430 (diff)
feat(hop): add fnl config
Diffstat (limited to 'fnl/config')
-rw-r--r--fnl/config/hop.fnl11
1 files changed, 11 insertions, 0 deletions
diff --git a/fnl/config/hop.fnl b/fnl/config/hop.fnl
new file mode 100644
index 0000000..d12c650
--- /dev/null
+++ b/fnl/config/hop.fnl
@@ -0,0 +1,11 @@
+;; Hopping in text.
+(module config.hop
+ {autoload {util util
+ nvim aniseed.nvim}})
+
+(let [(ok? hop) util.load-plugin :hop]
+ (when ok?
+ (hop.setup {})))
+
+(nvim.set_keymap "n" "s" ":HopChar2<cr>" { :silent true })
+(nvim.set_keymap "n" "S" ":HopWord<cr>" { :silent true })