From be328353db5527dab9e5cfb2b12e8120ef906025 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 13 Jan 2022 21:58:08 +0100 Subject: Add hop --- lua/config/hop.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lua/config/hop.lua (limited to 'lua/config') 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", { silent = true }) +vim.api.nvim_set_keymap("n", "S", ":HopWord", { silent = true }) -- cgit v1.2.3-70-g09d2