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

[RFC] Add RemoteApi.__dir__ with info from nvim_get_api_info #346

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Jul 14, 2018

This can be used by IPython's completion for example.

Is the selection sane?
Could there be more?
AFAICS only functions are supported/used there.

This can be used for introspection, and especially completion.
"""
if self._api_names is None:
api_info = self._obj.request('nvim_get_api_info')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a shared metadata object as nvim.metadata though it is a bit tricky to access it as _obj could be either a Nvim or a Remote. Guess you could do something like nvim = _obj._session if isinstance(obj,Remote) else _obj

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

Successfully merging this pull request may close these issues.

2 participants