Skip to content

api.tree.toggle doesn't work when setup is called right before it in a mapping #2052

Closed Answered by bernardassan
bernardassan asked this question in Q&A
Discussion options

You must be logged in to vote

@nitaicharan To fix this issue, check the recommended nvim_tree_events_startup help section. An example of how I used it when I was using paq.nvim can be found here.

But when using lazy.nvim you shoudn't call setup fn outside of the config fn of the plugin. check out an example of how to configure tree with lazy.nvim

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@alex-courtis
Comment options

Comment options

You must be logged in to vote
4 replies
@nitaicharan
Comment options

@alex-courtis
Comment options

@nitaicharan
Comment options

@alex-courtis
Comment options

Comment options

You must be logged in to vote
1 reply
@nitaicharan
Comment options

Answer selected by bernardassan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
3 participants
Converted from issue

This discussion was converted from issue #2050 on March 13, 2023 01:09.