aboutsummaryrefslogtreecommitdiffhomepage
path: root/.config/nvim/lua/vimrc
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-07 01:09:00 +0900
committernsfisis <nsfisis@gmail.com>2024-08-07 01:09:00 +0900
commit4082fdb9b459dc5525925b3277bfff1f87a28248 (patch)
tree41f2f76ce5c6ac2e87b5aedca62c6deed2c345c9 /.config/nvim/lua/vimrc
parentdd61c58f42d089dbf47eb88b9a555d9b31e7cd64 (diff)
downloaddotfiles-4082fdb9b459dc5525925b3277bfff1f87a28248.tar.gz
dotfiles-4082fdb9b459dc5525925b3277bfff1f87a28248.tar.zst
dotfiles-4082fdb9b459dc5525925b3277bfff1f87a28248.zip
nvim/hop: unite `sn` and `sN` into `sn`
Diffstat (limited to '.config/nvim/lua/vimrc')
-rw-r--r--.config/nvim/lua/vimrc/plugins.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/.config/nvim/lua/vimrc/plugins.lua b/.config/nvim/lua/vimrc/plugins.lua
index b4cd1ef..0db8508 100644
--- a/.config/nvim/lua/vimrc/plugins.lua
+++ b/.config/nvim/lua/vimrc/plugins.lua
@@ -419,7 +419,6 @@ return {
-- * sr
{'ss', '<Plug>(hop-s2)', mode = {'n', 'o', 'x'}},
{'sn', '<Plug>(hop-n)', mode = {'n', 'o', 'x'}},
- {'sN', '<Plug>(hop-N)', mode = {'n', 'o', 'x'}},
{'sj', '<Plug>(hop-j)', mode = {'n', 'o', 'x'}},
{'sk', '<Plug>(hop-k)', mode = {'n', 'o', 'x'}},
},
@@ -439,8 +438,7 @@ return {
vim.keymap.set('', '<Plug>(hop-s2)', function() hop.hint_char2() end, { silent = true })
- vim.keymap.set('', '<Plug>(hop-n)', function() hop.hint_patterns({ direction = AFTER_CURSOR }, vim.fn.getreg('/')) end, { silent = true })
- vim.keymap.set('', '<Plug>(hop-N)', function() hop.hint_patterns({ direction = BEFORE_CURSOR }, vim.fn.getreg('/')) end, { silent = true })
+ vim.keymap.set('', '<Plug>(hop-n)', function() hop.hint_patterns({}, vim.fn.getreg('/')) end, { silent = true })
vim.keymap.set('', '<Plug>(hop-j)', function() hop.hint_vertical({ direction = AFTER_CURSOR }) end, { silent = true })
vim.keymap.set('', '<Plug>(hop-k)', function() hop.hint_vertical({ direction = BEFORE_CURSOR }) end, { silent = true })