codeium.vim icon indicating copy to clipboard operation
codeium.vim copied to clipboard

Set a high priority on virtual text in Neovim

Open dimfeld opened this issue 1 year ago • 2 comments

This allows the suggestions to appear on top of coc.nvim inlay hints and other virtual text on the same line, whereas with the default priority they appear below the inlay hint which makes the suggestions difficult to read.

Without setting priority, we see the bool inlay hint appears on top of the empty(); suggestion. (My theme is set up so that Codeium's suggestions are in light red.)

CleanShot 2024-07-25 at 15 28 30@2x

The same line with the change in this PR. Codeium's suggestion appears above the inlay hint, so it can be read.

CleanShot 2024-07-25 at 15 29 44@2x

Tested with Neovim 0.10.1

dimfeld avatar Jul 26 '24 01:07 dimfeld

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 26 '24 01:07 CLAassistant

Thanks for this, is there any way we can speed up getting this merged?

Ajaymamtora avatar Jul 28 '24 22:07 Ajaymamtora

Can we make this configurable by the user? Leaving the default as 65535 seems fine.

fortenforge avatar Aug 12 '24 22:08 fortenforge

Can we make this configurable by the user? Leaving the default as 65535 seems fine.

Updated to allow setting g:codeium_virtual_text_priority to alter it globally, and b:codeium_virtual_text_priority on a per-buffer basis.

dimfeld avatar Aug 14 '24 00:08 dimfeld