Best practices for setup with lazy.nvim? #1685
-
Contributing guidelines
Module(s)all of the above QuestionFor loading with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The main "distribution source" of 'mini.nvim' is the whole library. It will always have priority over standalone repositories which are semi-automatically synchronized with the changes in 'mini.nvim'. As far as I can tell with 'folke/lazy.nvim', the standalone repos fit more to its declarative specification if you want to narrowly lazy load everything that can be lazy loaded. Like lazy load 'mini.completion' on If you don't really care about extra lazy loading, installing the whole 'mini.nvim' and then doing The main argument that motivated creating a dual distribution model in the first place was that with standalone modules users get narrowly targeted changelog during updates only from modules they prefer to use. With the 'mini.nvim' library approach, there will be all kinds of But in the end, the "official" suggestion here remains the same and is to use 'mini.deps' (with config similar to this) :) The extra performance benefit of using the whole 'mini.nvim' library is that it adds only a single entry in runtimepath (collection of paths Neovim uses when searching for runtime stuff; like during any |
Beta Was this translation helpful? Give feedback.
The main "distribution source" of 'mini.nvim' is the whole library. It will always have priority over standalone repositories which are semi-automatically synchronized with the changes in 'mini.nvim'.
As far as I can tell with 'folke/lazy.nvim', the standalone repos fit more to its declarative specification if you want to narrowly lazy load everything that can be lazy loaded. Like lazy load 'mini.completion' on
InsertEnter
event, etc.If you don't really care about extra lazy loading, installing the whole 'mini.nvim' and then doing
require('mini.xxx').setup()
in theconfig
field should be good enough. The benefit here is a more compact and easy-to-follow config, which is not nothing in my…