Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Add detail to the snippet completion items #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

urandom
Copy link

@urandom urandom commented Apr 12, 2020

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

Use the menu to add further detaisl for any snippet completions, to help the user pick the right one without guessing.
@haorenW1025
Copy link
Collaborator

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.

@urandom
Copy link
Author

urandom commented Apr 13, 2020

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.

@haorenW1025
Copy link
Collaborator

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants