lsp_signature.nvim icon indicating copy to clipboard operation
lsp_signature.nvim copied to clipboard

Doc Lines Set to 0 will occasionally show more than 0

Open addMoreCoffee opened this issue 1 year ago • 6 comments

When doc lines is set to 0, the setting doesn't appear to stick all the time. Removing a parenthesis and re-adding it can cause the popup to ignore the doc lines setting.

https://github.com/ray-x/lsp_signature.nvim/assets/8953727/f5fb49ab-5a0b-4ea8-b044-f51187dfe2b9

config:

local cfg = {
	bind = true, 
	handler_opts = {
		border = "rounded"
	},
	hint_enable = false,
	hint_prefix = "",
	doc_lines = 0,
}

require'lsp_signature'.setup(cfg)

addMoreCoffee avatar Apr 22 '24 19:04 addMoreCoffee

This also happens to me and it's very annoying. @ray-x can you please fix this asap?

Kyren223 avatar Jul 11 '24 16:07 Kyren223

Could you also post

  1. the code snippets you are using
  2. the language server/LSP

So I can reproduce this issue. Thanks!

ray-x avatar Jul 21 '24 11:07 ray-x

I tried it with the snippet vim.keymap.set() with luals But this also happened in C and other languages.

I suspect it might be an issue with a different plugin (maybe lspconfig) I was not able to reproduce it with my current config, I had to go back a week to reproduce it Most notably in that week, I have updated all my plugin versions.

If you wish to investigate more, you may clone my dotfiles I can't reproduce it with my latest commit but I can if I checkout to this commit:

Kyren223 avatar Jul 21 '24 17:07 Kyren223

@addMoreCoffee can you try updating your plugins and see if it fixes it?

Kyren223 avatar Jul 21 '24 17:07 Kyren223