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

sly completion company-capf has a cannot understand annotation #161

Closed
stardiviner opened this issue Jun 12, 2018 · 8 comments
Closed

sly completion company-capf has a cannot understand annotation #161

stardiviner opened this issue Jun 12, 2018 · 8 comments

Comments

@stardiviner
Copy link

sly completion annotations

Because sly-company is deprecated now, and sly now support company-mode by company-capf now. I found the annotation is really weird. can't understand what it is.

@joaotavora
Copy link
Owner

You're right, it's quite cryptic unless you're already used to it. What do you think of this?
image

@stardiviner
Copy link
Author

This one in screenshot is annotation. Have to admit that is cryptic. Can't understand it intuitively.
Can sly prove this annotation or have any option for this?

@joaotavora
Copy link
Owner

I don't understand exactly what you mean. In the previous version, it was indeed cryptic, but the version I pushed now should be less cryptic. "Fn" means function, "var" means special variable, etc. The percentage after it tells you how well the completion candidate matched.

@stardiviner
Copy link
Author

Ehh, sorry, I have not realized that have already pushed update. I mean your screenshot version is fine for me.

@stardiviner
Copy link
Author

One more thing, can the annotation align more better:
when the candidate completion match score is different length, the annotation is not align well:

image

The first candidate annotation is wider than other candidate annotations. Make the percent number has a fixed length? WDYT?

@joaotavora
Copy link
Owner

Make the percent number has a fixed length? WDYT?

Hmmm, OK.

@joaotavora
Copy link
Owner

Hmmm, OK.

Actually, I don't undestand what is happening in your system... This is what I get from an Emacs -Q session

emacs -Q -L . -l sly.el -f sly -L ~/.emacs.d/elpa/company-20180317.1008/ -l company -f global-company-mode --eval '(setq company-tooltip-align-annotations t)'

image

@stardiviner
Copy link
Author

Hmm, I tested with your command on my machine. Indeed, company works as your screenshot.
I used company-box package. Seems it cause this wrong align. I will post an issue on company-box. Thanks for your help. @joaotavora

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

2 participants