Skip to content

Set custom trigger keys #69

Answered by ggandor
DavidSSL asked this question in Q&A
Oct 19, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

There is an example at the bottom. Use <Plug>(leap-foo) as the right hand side, simple as that.

leap.nvim/doc/leap.txt

Lines 307 to 335 in a9d3232

CUSTOM MAPPINGS *leap-custom-mappings*
<Plug> keys are aliases for right hand sides of mappings - in our case, calls
to |leap.leap()|. If you are not familiar with the concept, see |<Plug>| and
|using-<Plug>|.
Available <Plug> keys (with their corresponding argument tables):
*<Plug>(leap-forward-to)*
arguments: `{}` in Normal mode, otherwise `{ offset = +1, inclusive_op = true }`
default mapping: `s`
*<Plug>(leap-forward-till)*
arguments: `{ offset = -1, inclusive_op =…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DavidSSL
Comment options

Answer selected by DavidSSL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants