Replies: 1 comment 1 reply
-
I haven't looked for a while, but I think that version of lazy loading doesn't override the runtimepath (like lazy.nvim does). Instead it just focuses on not calling If my above understanding is correct, this means you will see all plugins as loaded, they just won't have been "set up" yet. I'm not aware of any examples using nixvim and lz.n, but I think a good first step would be to have a nixvim module similar to our lazy.nvim and packer modules. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am following issue #421, which covers possible solutions for lazy-loading plugins in
nixvim
so thatneovim
can become a bit snappier. Recently, @GaetanLepage recommended lz.n, which is a sleek solution to the problem. It only does lazy loading, but supposedly, it is doing it well! And ifnixvim
is used, we do not need the plugin manager aspect oflazy.vim
.I wanted to see if someone is using it so we can share our config and experiences! My current config of
lz.n
is here. I tried to loadnvim-cmp
only when insert mode is entered here. Somehow, I am not sure I am doing it right, since vim-startuptime still showsnvim-cmp
and other plugins I tried lazy-loading in the resulting profile, but should be only loaded, if a certain command is executed!Beta Was this translation helpful? Give feedback.
All reactions