diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-16 10:35:13 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-16 10:35:13 +0100 |
commit | 0c513c1fed4c02f41e0097bb5d74525429a43450 (patch) | |
tree | 05ea50d2c7868283fc7bbb757aae042f6027d823 | |
parent | f9d2328c130378a5b4823369681c48008fcf61c7 (diff) |
Revert "Remove hop"
This reverts commit c46c1ba6cf1517daa5c1fd03c42b2cf058228f5d.
-rw-r--r-- | lua/config/hop.lua | 8 | ||||
-rw-r--r-- | lua/config/init.lua | 1 | ||||
-rw-r--r-- | lua/plugins.lua | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/lua/config/hop.lua b/lua/config/hop.lua new file mode 100644 index 0000000..cc09a8a --- /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/config/init.lua b/lua/config/init.lua index c5b6147..ed103c0 100644 --- a/lua/config/init.lua +++ b/lua/config/init.lua @@ -16,6 +16,7 @@ require("config.impatient") require("config.alpha") require("config.whichkey") require("config.autocommands") +require("config.hop") require("config.zen") require("config.spectre") require("config.colorizer") diff --git a/lua/plugins.lua b/lua/plugins.lua index 95e2ab2..66ce44c 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -45,6 +45,7 @@ return { { "folke/which-key.nvim" }, { "folke/zen-mode.nvim" }, { "windwp/nvim-spectre" }, + { "phaazon/hop.nvim" }, { "kevinhwang91/nvim-bqf", event = "BufRead", |