kosayoda / nvim-lightbulb

VSCode 💡 for neovim's built-in LSP.
MIT License
801 stars 30 forks source link

Cmp's Ghost text is overwritten #34

Closed fgheng closed 1 year ago

fgheng commented 2 years ago

I used nvim-cmp as the completetion framework and I opened its experiment feature 'ghost txt', but the bulb overwritten the ghost txt, how to avoid it?

image

ghost txt is like as below image

kosayoda commented 2 years ago

With the current state of the plugin, you could use a different indicator:

  1. sign shows a lightbulb in the sign gutter,
  2. float opens a floating window with the lightbulb in it

Alternatively, I can add support for specifying the virtual text column for the lightbulb (ie. #7, but the branch I was working on is old and behind master). Let me know if so and I can try implementing it whenever I get the time to do so.

kosayoda commented 1 year ago

Hello! With the newest release, you can set the position of the virtual text with virtual_text.pos, with something like right_align it should get out of your way most of the time.