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

Feature Request - Vim Command #2

Open
weilbith opened this issue Dec 17, 2020 · 1 comment
Open

Feature Request - Vim Command #2

weilbith opened this issue Dec 17, 2020 · 1 comment

Comments

@weilbith
Copy link

weilbith commented Dec 17, 2020

Hey, 👋
Just stumbled over this plugin and it looks pretty cool/powerful.
I must admit that I dislike to set key mappings via a setup function of a plugin. Happily other treesitter plugins have added a Vim command. Or at least there is a "direct" Lua function available that could be bound. But for this plugin I don't understand the internals and how to do a manual mapping.
Could you help me? Or eventually add commands for these possible mappings? 🙃

@steelsojka
Copy link
Collaborator

you can call the lua methods that produce the results from the prebuilt mappings. The most common one is require "nvim-tree-docs.internal".doc_node_at_cursor(). I will look at exposing commands.

Note, this plugin is in some flex due to the rapid development of treesitter in neovim. I'm using it daily, but there MAY be times when it may be broken.

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