ray-x / lsp_signature.nvim

LSP signature hint as you type
Apache License 2.0
2.01k stars 56 forks source link

Virtual text jumps around #257

Open DasGandlaf opened 1 year ago

DasGandlaf commented 1 year ago

Hey 👋 Love the plugin, it's great!

When the nvim-cmp menu is not there: image When it is there: image

The hint is below the cursor, once the cmp menu pops up, it jump up to the same line as the cursor. Can I make it always stay one line above the cursor?

Thank you.

ray-x commented 1 year ago

This would be a feature that when floating windows is false, allow virtual text to be at the same line.

DasGandlaf commented 1 year ago

Yeah 👍

Also, is the described behaviour intended? I think, It'd be fine with it staying at the cursor line, as long as it doesn't get annoying while typing or something like that.

ray-x commented 1 year ago

the code was designed in assuming that floating windows will show. So the virtual text should avoid floating area. Also it does avoid the lines if they are too packed/long. I normally use floating windows so not a big issue for me. But I need to re-think this by disabling floating window.