Skip to content
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

Vim8 popup scroll #1025

Closed
wants to merge 5 commits into from
Closed

Vim8 popup scroll #1025

wants to merge 5 commits into from

Conversation

yongrenjie
Copy link

(cf. #975)

Sorry this took a while!

I was keeping a tab on the discussion with Bram on focusing in Vim 8 popup windows. It doesn't seem like that will be implemented soon, so in the meantime I guess this might be a workable band-aid. I also added a :LspPopupScroll command which exposes the functionality more easily. I did look into popup_filter(), but I suspect implementing that would require slightly larger-scale modification of the existing codebase. Of course, if you choose to go down a different route in the future I am willing to help.

autoload/lsp/ui/vim/output.vim Outdated Show resolved Hide resolved
doc/vim-lsp.txt Outdated Show resolved Hide resolved
autoload/lsp/ui/vim/output.vim Show resolved Hide resolved
@prabirshrestha
Copy link
Owner

I'm going to wait for this change since it could be breaking. I'm hoping we can use hrsh7th/vim-vital-vs#3 instead.

lsp#ui methods are internal and shouldn't be used by others and can break at any time.

@prabirshrestha
Copy link
Owner

I'm going to close this PR since we are in the middle of migrating to a new popup/floating window code and callbags.

I would first suggest to migrate to it and then work on adding scrolling on top of it. The vital popup we are using has easy scroll apis.
Feel free to refer to #1052 if you want to look at migrating hover to the new apis.

@yongrenjie yongrenjie deleted the vim8-popup-scroll branch February 15, 2021 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants