ggandor / leap.nvim

Neovim's answer to the mouse 🦘
MIT License
4.33k stars 47 forks source link

Leap prompt is positioned after the 0.10 inlay_hints #228

Open LarssonMartin1998 opened 4 months ago

LarssonMartin1998 commented 4 months ago

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.

ggandor commented 4 months ago

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?

LarssonMartin1998 commented 4 months ago

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