chrisgrieser/nvim-lsp-endhints

Virtual text highlight not respecting cursorline background

catgoose opened this issue · 3 comments

Make sure you have done the following

  • I have updated to the latest version of the plugin.
  • I have read the README.
  • LSP inlay hints do work correctly without this plugin when using vim.lsp.inlay_hint.enable(true). (If not, then the problem lies with your LSP or your LSP configuration, not this plugin.)

Bug Description

Without plugin:

image

With plugin:

image

I use kanagawa and LspInlayHint highlight group links to NonText, but it looks like when the virtual text is created for some reason it is not displaying the same with cursorline as when the plugin is disabled

Relevant Screenshot

No response

To Reproduce

  1. enable cursorline
  2. set highlight group for cursorline
  3. view inlay hints

neovim version

NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1713484068

Tbh, I am not sure why that happens, since the plugin does not change highlight groups at all. 🤔

Could it be how the virtual text is created?

ah found it, there is an extmark option for that. Fixed.