hrsh7th / cmp-nvim-lsp-signature-help

cmp-nvim-lsp-signature-help
584 stars 24 forks source link

Include short documentation for the current parameter #10

Closed mikehaertl closed 2 years ago

mikehaertl commented 2 years ago

Would it be possible to include a short help for the current parameter? Similar to how https://github.com/ray-x/lsp_signature.nvim does it:

image

The same function looks like this in cmp-nvim-lsp-signature-help:

image

Maybe this could be a configurable option?

n3wborn commented 2 years ago

I've just discovered this repo today which I really prefer to lsp_signature. This feature is the only thing I'd miss. I'd love to be able to make a PR but my lua is so bad that I already struggle configuring nvim with it ^^

mikehaertl commented 2 years ago

I just did a very hackish implementation in #14 . I had no time to read much into nvim lua so my implementation isn't perfect for sure - but it works for me.

mikehaertl commented 2 years ago

This has now been merged. @hrsh7th actually improved my solution a bit and it looks good.