|
|
|
|
|
by WhyNotHugo
294 days ago
|
|
The neovim model of using setup() makes lazy loading a bit trickier than traditional Vim. Lazy loading is much easier with Vim’s model of configuring by setting variables. You just set variables in init.vim, and the plugin can auto-load when one of its functions is executed. With lua this requires more orchestration; if many autocmd refer to the same plugin, they all need to explicitly remember to call setup(). |
|
Edit: The Neovim setup antipattern is the Lua equivalent of writing Vimscript functions in autoload and asking users to call them in their configs instead of doing so automatically.