-
|
Hi I'm new on this plugin, but what always struck me as odd on intuition was how the label is sort of on the "third" character, I do understand the idea of it, i.e. you type the two characters you see, and sequentially the third one you see. But let's say I wanted it to be on the second one, where I conceptualize that the label goes on the pair rather than after it. Would this cause any technical problem? Related and further goals I'm thinking about: I want to make the labeled pairs similar (but not exactly) to how vim-sneak does it for reasons of better legibility of the label (vaguely speaking, I can clarify more if this is interesting). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
Actually I achieved the setup visually by hacking on vim-sneak that I was looking for: Blank on the first on the pair, label on the second https://github.com/tuurep/vim-sneak/tree/label-at-the-end-of-match I thought this was what I wanted, but it ended up being worse, not better than the default of vim-sneak 😄 What I mean exactly is how some characters hug the edge of a cell like this:
The This further made me appreciate better how leap.nvim's label is placed. |
Beta Was this translation helpful? Give feedback.
-
|
Hi! If you just want to shift the label to the left, you can do that: Lines 487 to 505 in 7068a05 If you want to show the label over the second char instead of the first, then the loop body should be: if t.label and t.beacon then
t.beacon[1] = target.chars and #target.chars[1] or 0
endRelated issue: #220 Technically you can add a blank too with |
Beta Was this translation helpful? Give feedback.




Hi! If you just want to shift the label to the left, you can do that:
leap.nvim/README.md
Lines 487 to 505 in 7068a05