Replies: 2 comments 3 replies
-
the init plugin spec may be what you need https://lazy.folke.io/spec#spec-setup |
Beta Was this translation helpful? Give feedback.
-
Can you give an example with more concrete details as to what you're trying to achieve? Show the plugin spec of the plugin you're using along with the From a quick test if you have a file print("lazy")
return {} and a file print("exrc") Then it will first print However, if you change vim.schedule(function()
print("lazy")
end)
return {} then it will print |
Beta Was this translation helpful? Give feedback.
-
Hi, I’ve searched for this topic before writing this, but none of the examples I found were helpful.
I have a plugin that reads a project-based config using
vim.g
. It checks for a config file in thecwd
, and if it exists, it tries to read values fromvim.g
. The issue is thatlazy.nvim
loads plugins too early, before the project config is sourced. This forces me to manually load the config file usingdofile()
, which isn't ideal.I’ve also tried using
.lazy.nvim
but ran into the same problem.Is there a better way to handle this?
Beta Was this translation helpful? Give feedback.
All reactions