summaryrefslogtreecommitdiff
path: root/lua/config
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-13 21:58:08 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-13 21:58:08 +0100
commitbe328353db5527dab9e5cfb2b12e8120ef906025 (patch)
tree58128fac1e57a92d166164094524afa415b07cea /lua/config
parent97b7fb70b027aa55f8e92380b77c04a7ed45afd1 (diff)
Add hop
Diffstat (limited to 'lua/config')
-rw-r--r--lua/config/hop.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/lua/config/hop.lua b/lua/config/hop.lua
new file mode 100644
index 0000000..9fd6422
--- /dev/null
+++ b/lua/config/hop.lua
@@ -0,0 +1,8 @@
+local status_ok, hop = pcall(require, "hop")
+if not status_ok then
+ return
+end
+
+hop.setup()
+vim.api.nvim_set_keymap("n", "s", ":HopChar2<cr>", { silent = true })
+vim.api.nvim_set_keymap("n", "S", ":HopWord<cr>", { silent = true })