leap.nvim icon indicating copy to clipboard operation
leap.nvim copied to clipboard

Labels in the presence of inlay hints

Open LarssonMartin1998 opened this issue 1 year ago • 2 comments

When using the new inlay hints that dropped with 0.10, the prompt I get which allows me where to leap isn't positioned next to the jump point if the character is followed by inlay hints, then it is positioned after the inlay hints.

LarssonMartin1998 avatar May 20 '24 20:05 LarssonMartin1998

This seems non-trivial to handle. Maybe we should just disable/enable inlay hints on LeapEnter/LeapLeave, as with certain editor options, e.g. conceallevel?

ggandor avatar May 31 '24 20:05 ggandor

This seems non-trivial to handle. Maybe we should just disable/enable inlay hints on LeapEnter/LeapLeave, as with certain editor options, e.g. conceallevel?

I agree, and I actually already did this in my personal config recently, however, I thought I'd still raise it here. Great minds think alike ;)

Here is my implementation that toggles inlay hints

LarssonMartin1998 avatar May 31 '24 22:05 LarssonMartin1998