Confusion between Lazy Loading Vs after/plugin/* #131
-
Hi, First of all thank you for this awesome plugin. I am totally confused between after/plugin/* and lazy loading options in Lazy.nvim. suppose I have the following case: init.lua
after/plugin/treesitter.lua
As per lazy.nvim, treesitter is lazy loaded when BufEnter occurs. But now that I placed "treesitter.lua" in after/, Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This all works as it works with regular Neovim packages. So the If you do a If you want to lazy-load it, you need to do your config in |
Beta Was this translation helpful? Give feedback.
This all works as it works with regular Neovim packages. So the
/after
files in your rtp are always sourced during startup. Not sure if I understand your question.If you do a
require("treesitter")
in an/after
file, then that would basically load treesitter at startup.If you want to lazy-load it, you need to do your config in
config()
as is explained in the docs.