Hacks for plugins #11
danilshvalov
started this conversation in
Show and tell
Replies: 1 comment
-
Hack
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks! In this thread, I propose to share your hacks with
langmapper.nvim
for various plugins. I'm going to start with motion pluginleap.nvim
.By default,
leap.nvim
reads characters usinggetcharstr
, so remap won't help here. Sinceleap.nvim
uses English characters for labels, it is logical that the characters entered should be transformed into English. After analysis theleap.nvim
code, I realized thatget-input
is only used to get the label, not to get the source text. So I was able to apply the following hack:I took this code from the plugin's source code itself and added the use of
langmapper.nvim
. This is an example of how the hack works:leap-example.mp4
Beta Was this translation helpful? Give feedback.
All reactions