-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Add the ability to pass popup_params when creating a custom ycm_hover #4137
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NICE! thanks.
LGTM with a few nits.
Reviewable status: 0 of 2 LGTMs obtained (waiting on @eliasdaler)
autoload/youcompleteme.vim
line 1653 at r1 (raw file):
endif let s:popup_params = {
I don't think this needs to be a script-local variable. Function-local is fine (let popup_params = ...
).
autoload/youcompleteme.vim
line 1664 at r1 (raw file):
if has_key( b:ycm_hover, 'popup_params' ) let s:popup_params = extend( copy( s:popup_params ), b:ycm_hover.popup_params )
looks > 80 chars
doc/youcompleteme.txt
line 3280 at r1 (raw file):
- 'syntax': The syntax to use (as in 'set syntax=') in the popup window for highlighting. - 'popup_params': The params passed to a popup window which gets opened.
need to make this change in README.md rather than here. This file is generated from README.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: 0 of 2 LGTMs obtained (waiting on @eliasdaler)
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #4137 +/- ##
===========================================
- Coverage 84.07% 73.88% -10.19%
===========================================
Files 34 34
Lines 4483 4484 +1
===========================================
- Hits 3769 3313 -456
- Misses 714 1171 +457 |
I also noticed that YCM's docs refer to other docs by saying "see Is this the limitation of generator that people are okay with, or is this |
It's a limitation of the converter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 2 files at r2, 2 of 2 files at r3, all commit messages.
Reviewable status: 0 of 2 LGTMs obtained (waiting on @eliasdaler)
autoload/youcompleteme.vim
line 1655 at r3 (raw file):
let popup_params = { \ 'col': col, \ 'wrap': 1,
this change seems wrong?
Indeed. Fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r4, all commit messages.
Reviewable status: 1 of 2 LGTMs obtained (waiting on @eliasdaler)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r4, all commit messages.
Reviewable status: 1 of 2 LGTMs obtained (waiting on @eliasdaler)
Thanks |
Thanks for sending a PR! |
PR Prelude
Thank you for working on YCM! :)
Please complete these steps and check these boxes (by putting an
x
insidethe brackets) before filing your PR:
rationale for why I haven't.
actually perform all of these steps.
Why this change is necessary and useful
This PR adds the ability to pass
popup_params
to a customycm_hover
like this:This allows users to customize the popup window by adding maximum width, borders and other behaviour:
popup2.mp4
This change is