diff options
-rw-r--r-- | lua/config/hop.lua | 8 | ||||
-rw-r--r-- | lua/plugins.lua | 1 |
2 files changed, 9 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 }) diff --git a/lua/plugins.lua b/lua/plugins.lua index f0edd41..ec735c8 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -53,4 +53,5 @@ return { end }, { "windwp/nvim-spectre" }, + { "phaazon/hop.nvim" }, } |