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

Inlay hint configurable option

Open lmburns opened this issue 2 years ago • 10 comments
trafficstars

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] I do not like the inline inlay hints.

Describe the solution you'd like A clear and concise description of what you want to happen. Make it a configuration option on whether or not separators are used, or where the inlay hint is located. Similar to how the code-lens option is given to choose.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. Disabling them, but I'd prefer not to.

Additional context Add any other context or screenshots about the feature request here.

lmburns avatar Aug 31 '23 20:08 lmburns

Separator of inlay hint have removed, not needed any more, see https://github.com/neoclide/coc.nvim/blob/master/history.md#2023-08-31

chemzqm avatar Sep 01 '23 02:09 chemzqm

Yeah I saw that it was removed. That's why I created this feature request. But I couldn't find out how to place the inlay-hints at the end of the line like they were before, instead of them mandatorily being inline. Is there a way to do this? I searched through the documentation

lmburns avatar Sep 02 '23 01:09 lmburns

But I couldn't find out how to place the inlay-hints at the end of the line like they were before.

No such support as we don't think it's a good idea compare to inline ext markers.

chemzqm avatar Sep 02 '23 15:09 chemzqm

I'm sure you have your reasons, but I would still like to request this feature. I'm not used to inline markers at all, and would prefer the old style.

SeniorMars avatar Sep 15 '23 01:09 SeniorMars

It's an opensource project and as authors you can do whatever you want, but I don't understand why are you so eager to break established habits of your users. It was the same with the floating status notifications around a year ago.

Awpteamoose avatar Sep 19 '23 11:09 Awpteamoose

It's an opensource project and as authors you can do whatever you want, but I don't understand why are you so eager to break established habits of your users. It was the same with the floating status notifications around a year ago.

Sorry for that, mostly because the code could be too complex to maintain.

chemzqm avatar Sep 19 '23 13:09 chemzqm

No, thank you for your work on this awesome project!

SeniorMars avatar Sep 22 '23 19:09 SeniorMars

Just for keeping track on the other issue:

Can we put the inline hints only visible for current line?

Ref. https://github.com/neoclide/coc.nvim/issues/4074?notification_referrer_id=NT_kwDOABQtbLI0MjI4NTE2NTU5OjEzMjIzNDg#issuecomment-2150493218

aemonge avatar Jun 06 '24 08:06 aemonge

You can get the old hints by pinning 3dc6153.

Neovim 0.10.0 was only released a month ago, so I only just updated coc, but after seeing these new inlay hints I had to roll it back to 3dc6153 immediately.

awused avatar Jun 18 '24 04:06 awused

#5060 added inlayHint.position configuration, supports inline and eol.

fannheyward avatar Jun 27 '24 10:06 fannheyward