Replies: 1 comment
-
I've recently learned about (disclosure: I'm a complete newbie to Lazy myself, and I'm on a journey of trying to figure out how the order of plugins & config() works. I also have a plugin that when I run the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to configure a plugin (overseer), where I want to specify opts. I'm doing it the "Lazy.nvim" way by entering the opts into the opts element of the table I'm passing to Lazy.nvim to set up this plugin.
However, here's the catch. I want to run some lua script after the plugin is set up. I would think I could just utilize the
config
element of this table, but it doesn't look so simple. I'm guessing because of lazy loading? If I uncomment the section of code at the end of this script, the overseer plugin is either loaded with the default opts instead of my opts, or it is interrupted during the setup. I'm not really sure how to tell which. But if I run those commented out lines manually with:lua ...
as a command, everything works as expected. So the commented out lines of code are not a problem.Is there some sort of callback I can use to run some lua script when the plugin finishes loading?
Beta Was this translation helpful? Give feedback.
All reactions