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

Make signature popup position configurable? #1058

Open
andrew-vant opened this issue Jun 4, 2021 · 2 comments
Open

Make signature popup position configurable? #1058

andrew-vant opened this issue Jun 4, 2021 · 2 comments

Comments

@andrew-vant
Copy link

I like the popup call signatures, but their positioning isn't great. They appear directly above the cursor, usually covering the last few lines of code context.

I'd like the popup to spawn somewhere else, preferably with a way to customize its position. Possibilities:

  • Below the current line instead of above it
  • A line removed from the current one, so there's more immediate context
  • At the top or bottom of the current split
  • In a tiny hsplit, maybe? I gather from other issues that the in-buffer popup feature is a bit gnarly, so possibly this is harder to change than it sounds.

For the time being I'm using show_call_signatures=2, which works fine, although I sort of wish it aligned the message with split column 0 instead of the cursor position, and it's harder to read alternate signatures.

I'm not great at vimscript, but I'm willing to attempt to implement this if someone can point me to the right piece of code.

@blueyed
Copy link
Collaborator

blueyed commented Jun 4, 2021

There's some work that needs to be finished in #652.
Maybe you can try/revisit the PR/branch (blueyed:call-signatures) from there?

(Sorry, I've only skimmed the contents of your issue, but figured it would be relevant already)

@SamsiFPV
Copy link

What's the status on this? Also, can the signatures popup be called manually?

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

No branches or pull requests

3 participants