completion-nvim icon indicating copy to clipboard operation
completion-nvim copied to clipboard

Add detail to the snippet completion items

Open urandom opened this issue 5 years ago • 3 comments

Use the menu to add further details for any snippet completions, to help the user pick the right one without guessing.

urandom avatar Apr 12 '20 12:04 urandom

I personally thinks putting this information in completion menu makes the menu a little bit too long to see, especially with Neosnippets the description is often very long. That's why the information is shown in the hover windows for now.

haorenW1025 avatar Apr 12 '20 13:04 haorenW1025

On one hand, those entries could be large, which would be a problem for a small window. On the other however, relying on the hover for information is not very user friendly. One would have to go over the entries one by one in order to find the one that fits. Perhaps the "menu" text could be truncated to at most N characters, where N could either be configurable, or somehow derived from the available size, if the later is possible to be queried.

urandom avatar Apr 13 '20 21:04 urandom

Actually the hover window idea comes from coc.nvim, and I personally don't think that it's not user-friendly because you still need to go over the completion menu to complete anyway. Maybe I'll leave it as it is right now and if there are more people agree with your opinion then I'll try to find a good way of implement this. Sorry for any possible offend.

haorenW1025 avatar Apr 14 '20 06:04 haorenW1025