projects
/
dotfiles_nvim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61eaa94
)
add vertical hops to visual mode as well
master
author
Lukas Hägele
<lukas.haegele93@web.de>
Sun, 25 Oct 2026 15:58:06 +0000
(16:58 +0100)
committer
Lukas Hägele
<lukas.haegele93@web.de>
Sun, 25 Oct 2026 15:58:06 +0000
(16:58 +0100)
lua/config/plugins/hop.lua
patch
|
blob
|
history
diff --git
a/lua/config/plugins/hop.lua
b/lua/config/plugins/hop.lua
index a4b44821fb9fe2c31d978d595b5d2fedb5356964..cbfe19959e91cc264adedeb1ed7a8bb75374df98 100644
(file)
--- a/
lua/config/plugins/hop.lua
+++ b/
lua/config/plugins/hop.lua
@@
-10,11
+10,11
@@
return {
hop.setup()
- vim.keymap.set(
'n'
, '<space>j', function()
+ vim.keymap.set(
{'n', 'v'}
, '<space>j', function()
hop.hint_lines({ direction = directions.AFTER_CURSOR })
end, {remap=true})
- vim.keymap.set(
'n'
, '<space>k', function()
+ vim.keymap.set(
{'n', 'v'}
, '<space>k', function()
hop.hint_lines({ direction = directions.BEFORE_CURSOR })
end, {remap=true})