codeium.vim
codeium.vim copied to clipboard
Set a high priority on virtual text in Neovim
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.)
The same line with the change in this PR. Codeium's suggestion appears above the inlay hint, so it can be read.
Tested with Neovim 0.10.1
Thanks for this, is there any way we can speed up getting this merged?
Can we make this configurable by the user? Leaving the default as 65535 seems fine.
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.