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

Lazy Load Plugin #21

Open
camin-mccluskey opened this issue Nov 12, 2023 · 1 comment
Open

Lazy Load Plugin #21

camin-mccluskey opened this issue Nov 12, 2023 · 1 comment

Comments

@camin-mccluskey
Copy link

Thanks for this fantastic plugin! I noticed that, copying the setup (using Lazy as a package manager) in the README, the plugin never loaded. I've "solved" the issue by adding lazy = false but ideally it would load on the correct event. Could you suggest the appropriate event to ensure the plugin is loaded only when necessary for renaming/moving (cutting and pasting) the file in nvim-tree? Thanks

@antosha417
Copy link
Owner

antosha417 commented Nov 12, 2023

Hey! I personally still haven't found time to migrate and using packer. So not sure what are these events. I know that nvim-tree dispatches internal events. And we can register callbacks to handle them. https://github.com/nvim-tree/nvim-tree.lua/blob/master/doc/nvim-tree-lua.txt#L2328

This setup was added in #20 and I just assumed it works. @jellis206, could you please take a look if you have time?

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