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

Support multi-line textDocument/hover #224

Closed
MaskRay opened this issue Dec 22, 2017 · 3 comments
Closed

Support multi-line textDocument/hover #224

MaskRay opened this issue Dec 22, 2017 · 3 comments

Comments

@MaskRay
Copy link
Contributor

MaskRay commented Dec 22, 2017

Currently textDocument/hover is implemented via

    @neovim.function("LanguageClient_textDocument_hover")
    @deco_args
    def textDocument_hover(self, uri: str, languageId: str,
........
        echo(info)

# state.py
def echo(message: str) -> None:
    """Echo message."""
    message = escape(message)
    execute_command("echo '{}'".format(message))

For multi-line macro/struct/class declaration and comment support (see jacobdufault/cquery#29 for cquery's ongoing support), this UI may be infeasible. We might need to provide an alternative UI (e.g. preview window)

@YaLTeR
Copy link
Contributor

YaLTeR commented Dec 23, 2017

Maybe it's possible to display the info in a "popup" similar to autocomplete suggestions?

EDIT: this is kinda related to #196

@stellarhoof
Copy link

Also, don't use echomsg if possible. It pollutes the messages history.

@prabirshrestha
Copy link

vim-lsp supports multiline hover. Feel free to port this related commits.

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

4 participants