Replies: 1 comment
-
init will always load on startup. if you type |
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
-
hey hey,
i am just starting with lazy nvim, coming from packer.
i wanted to ask, which functions like config, init, etc i am allowed to define in the plugin file and when they will be called.
my specific example is, that i want to install avante and then change some colors for the render-markdown highlight groups.
what i was able to find out, is, that when i create a function config, that the plugin will not load automatically.
then i tried the function init, which seems to run, but the settings for the highlight groups i called in this function will be overwritten.
so i suspect, that init runs before loading the actual plugin.
what i need is the function i can call, which runs, after the plugin loaded, so that i can call my color settings for this plugin there.
the reason is, that i like to keep all the configuration for one plugin in one place.
i was able to chage the colors after the plugin loaded in a file, i import later from the init.lua.
is the function call tree somewhere documented?
here is an example, to show what i mean. the init function at the bottom runs before the plugin loaded.
Beta Was this translation helpful? Give feedback.
All reactions