diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/config/nvim_hop.lua | 3 | ||||
| -rw-r--r-- | lua/plugins.lua | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lua/config/nvim_hop.lua b/lua/config/nvim_hop.lua new file mode 100644 index 0000000..1a29126 --- /dev/null +++ b/lua/config/nvim_hop.lua @@ -0,0 +1,3 @@ +require('hop').setup() + +vim.api.nvim_set_keymap('n', 'f', "<cmd>lua require'hop'.hint_char2()<cr>", {noremap = true}) diff --git a/lua/plugins.lua b/lua/plugins.lua index a2dcd3d..b646632 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -61,9 +61,8 @@ require("packer").startup({ use({ "vlime/vlime", rtp = "vim/", ft = { "lisp" } }) end - -- Super fast movement with vim-sneak - use({"justinmk/vim-sneak", event = "VimEnter"}) - use { 'phaazon/hop.nvim', event = "VimEnter", config = [[require('hop').setup()]] } + -- Super fast buffer jump + use { 'phaazon/hop.nvim', event = "VimEnter", config = [[require('config.nvim_hop')]] } -- Clear highlight search automatically for you use({"romainl/vim-cool", event = "VimEnter"}) |
