-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
other entry key than s/S
#30
Comments
|
---- leap ----
vim.keymap.set('n', '-', '<Plug>(leap-forward)', {})
vim.keymap.set('n', '_', '<Plug>(leap-backward)', {}) works. thanks alot! Btw, https://github.com/kylechui/nvim-surround has dot-repeat functionality which is code you might want to |
Is there a way to achieve this that doesn't depend on Plug? Can I change this keymap using packer? |
@avborup |
It clashes with vim-sort-motion. See: ggandor/leap.nvim#30 (comment)
Hi all, I am having some issues with this. Currently, I am trying to re-map the visual/visual-block mode of this to use something different like I have this in my plugin set up: {
'ggandor/leap.nvim',
dependencies = {
'tpope/vim-repeat',
},
config = function()
require('leap').add_default_mappings()
end,
keys = {
{ 's', mode = 'n' },
{ 'S', mode = 'n' },
{ 'f', mode = 'n' },
{ 'F', mode = 'n' },
{ 't', mode = 'n' },
{ 'T', mode = 'n' },
{ 'f', mode = 'v' },
{ 'F', mode = 'v' },
{ 't', mode = 'v' },
{ 'T', mode = 'v' },
{ '-', mode = 'v' },
{ '_', mode = 'v' },
},
} And in my init.lua: vim.keymap.set({ 'v' }, '-', '<Plug>(leap-forward)', {})
vim.keymap.set({ 'v' }, '_', '<Plug>(leap-backward)', {}) However, once I do a visual-block mode, pressing hyphen does not give the intended behaviour of leaping forward. |
The problem might be |
This seems to have fixed it. Thanks @ggandor |
Will there be an option to remap (dynamically) the keys
s/S
?My main use case is https://github.com/kylechui/nvim-surround.
I checked https://github.com/ggandor/leap.nvim/blob/1d1032feefb53d407c59ea37d80374d77f6f9f3b/doc/leap.txt and did not find any functionality to rebind it/overwrite the default.
Since I dont need the plugin extremely frequent, I would like to use
_/-
instead or (eventually) hydra.nvim (https://github.com/anuvyklack/hydra.nvim).The text was updated successfully, but these errors were encountered: