Languageclient-neovim: Support multi-line textDocument/hover

Created on 22 Dec 2017  路  3Comments  路  Source: autozimu/LanguageClient-neovim

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)

Most helpful comment

All 3 comments

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

EDIT: this is kinda related to https://github.com/autozimu/LanguageClient-neovim/issues/196

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

Was this page helpful?
0 / 5 - 0 ratings