-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve documentation popup in neovim. Fix typo. #1017
Conversation
Can you include before/after screenshots? I will test it during the next few days. |
If the available space in either side of the completion popup is less than 3/4 of the required width, then we shall place the documentation popup below (or above, if necessary) of the completion popup. Previously, the documentation was just squashed into whatever space was available. It made documentation undreadable in some cases.
If you have 20 items where would the poppup show? Another idea I have thought was to remove the snippet so that it behaves similar to VsCode. In your case it would look like this.
Since the pumwidth is now small the left side of it can be used for documentation instead. The only issue would is how it would look for languages that have function overloads but I'm hoping documentation would still solve this issue. Your PR is still definitely better experience. |
Here's how the positioning is preferred -
This is what I actually wanted! It would be great if this could be implemented soon! I would absolutely love it 💟 |
I would like it to be a little more verbose -
|
It really depends on language servers. autocomplete and popup are the most fragile one so it is quite risky to change. currently working on other items so won't happen soon. vital.vim popup is ready to be merged in vim-lsp. vim-jp/vital.vim#748 Might be that is the first thing we want to add. and then similar to #1019 have I was hoping some of these gets fixed vim/vim#7555 vim/vim#7553 before I invest more in vim popups/neovim floats. |
Merged. Thanks. @subnut would you be interested in porting popup from vital.vim to vim-lsp? vim-jp/vital.vim#748 Currently I'm working on getting other areas in vim-lsp so I won't be able to work on it anytime soon. |
I am sorry I can't... I have exams coming up, and I am going to be very busy until the end of June. Off topic: Are you of Indian origin? |
@subnut Feel free to try #1038 and provide thoughts. It should be lot faster and I removed some of the info from popup. I did notice a small bug. I'm currently typing when popup shows at the bottom when popup shows at the top right. notice i simulated long line by adding when popup shows at bottom right. Currently neovim experience does seem better than vim in-terms of overlap as vim overlaps the complete menu and we can't see all the visible complete items. For now it would be better to fix the neovim only experience and in the future when we do move to a generic popup we can port neovim's logic instead of vim's popup logic. Feel free to send fixes after exam and best of luck for your exams! I'm originally from Nepal. |
No description provided.