▲ | babalark 5 days ago | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I'm really looking forward to this. I hope it helps push the nvim plugin community into lazy loading plugins by default instead of relying on a complex plugin manager like lazy. The nvim docs have a little note related to this[1]. I'm quite a fan of the nvim-neorocks plugin best practices as well[2]. In fact it seems like part of them got merged recently[3] hahaha. [1] https://neovim.io/doc/user/lua-plugin.html#lua-plugin-lazy | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | WhyNotHugo 5 days ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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(). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | 5 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[deleted] |