Closed jacknicklenson closed 9 months ago
this issue also presents in some other themes as well
What is an "inlay hint"? If you mean the "virtual text" sub-feature of :help text-properties
, then AFAIK there is no default/fallback highlight group for those. The author of the script that adds the text property is ultimately responsible for choosing what highlight group to use and there is nothing that can be done at the colorscheme level to affect that.
The author of script A might decide to use FooBar
while the author of script B might settle on BarBaz
, and neither of witch can be expected to be defined by a given colorscheme. If they decide to use a default highlight group, then that highlight group is used as is. Changing something like Constant
or String
in a built-in colorscheme just because some plugin author happens to use it for virtual text makes no sense at all.
The right thing to do is for the plugin author to define their own VirtualText
highlight group and use it.
vim-lsp link it to Conceal
afaik
Well that's my point: vim-lsp is using Conceal
, coc is using CocInlayHint
, etc.
Facts:
Conceal
or other default highlight groups just for this use-case and potentially break them for their original use-cases,so there is nothing we can do in Retrobox or other built-in colorschemes.
From there you have two sensible options:
VirtualText
highlight group for when none is provided. It should be linked to Normal
by default to maintain the current behavior of not highlighting virtual text.It looks like Conceal is used in the screenshots and retrobox has it bluish.
Updated to make it more conceal:
can retrobox add different background color for inlay hint ?
Like this for example :