Now the virtual text of coc.nvim look like this:
But I want to change the background color of virtual text.
Can anyone help me?
that probably should be done on the corresponding plugin side by changing some setting.
if you just want to know the api for “set virtual text style”, then it must be nvim_buf_set_extmark
You can use the highlight CocInlayHint
for this specific situation.
Here is an example in my configuration (in vimscript):
hi default CocInlayHint ctermbg=247 guifg=#000000 guibg=#999999
Hopefully it will help you.