Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@przepompownia
Copy link
Collaborator

No description provided.

@przepompownia
Copy link
Collaborator Author

I use my custom, simple Lua module lazy loader. In that way nvim-tree isn't setup and no module is loaded before calling function defined in keymap.

It has a drawback: NvimTree* commands definitions are not loaded at that point too.

Rarely, but still, I would like to start using nvim-tree with such command.

I know that direct call to require('nvim-tree.commands').setup() can be not recommended way, but (with this change) it allows to load command definitions without loading modules not used yet.

That setup() logic could exist in plugin/nvim-tree.lua instead.

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.

1 participant