Skip to content

Unusual completion description #105

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

Closed
fcojavierdomenech opened this issue Aug 22, 2017 · 4 comments
Closed

Unusual completion description #105

fcojavierdomenech opened this issue Aug 22, 2017 · 4 comments

Comments

@fcojavierdomenech
Copy link

fcojavierdomenech commented Aug 22, 2017

I'm getting the return type of the function instead of the description or the method signature (with params). Is it configurable or anything? I don't know why does it happen, all the screenshots i've seen look better than min.
I'm using PhpLanguage Server, nvim-completion-manager and this plugin. Sorry if LanguageClient-neovim isn't the source of this problem.

Screenshot_20170822_100457
programa para compartir fotos

@DeltaEvo
Copy link
Contributor

LanguageClient use detail field from the Language Server to show info on the menu, PHP Language Server fill the detail field with the return type https://github.com/felixfbecker/php-language-server/blob/35f33c8c91222b8409006cc68738e4000e33a4a3/src/CompletionProvider.php#L185
Full signature support seems to be for the moment WIP felixfbecker/php-language-server#438

The documentation is stored in a info field https://github.com/autozimu/LanguageClient-neovim/blob/master/rplugin/python3/LanguageClient/LanguageClient.py#L48
This can be used by other plugins like https://github.com/Shougo/echodoc.vim to show documentation

@fcojavierdomenech
Copy link
Author

fcojavierdomenech commented Aug 22, 2017

Thanks a lot for the explanation, so, if there was some way to tell echodoc which field is needed the problem would be solved, right?
Edit: no no, reading better, it should be done from LanguageClient-neovim I guess.

@DeltaEvo
Copy link
Contributor

DeltaEvo commented Aug 22, 2017

echodoc show the documentation for the last completion but this do not affect the display of the menu, if you want the full signature in the menu you need to wait for felixfbecker/php-language-server#438 to get merged

@autozimu
Copy link
Owner

Closing as issue shall go to php language server, as DeltaEvo explained.

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