feat(loader): automatically lazy-load colorschemes

This commit is contained in:
Folke Lemaitre 2022-12-22 13:49:00 +01:00
parent 210d1703ec
commit 07b467738d
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 26 additions and 0 deletions

View file

@ -22,6 +22,7 @@
- 🔎 Automatically check for updates
- 📋 Commit, branch, tag, version, and full [Semver](https://devhints.io/semver) support
- 📈 Statusline component to see the number of pending updates
- 🎨 Automatically lazy-loads colorschemes
## ⚡️ Requirements
@ -112,6 +113,9 @@ module of plugin `A`, then plugin `A` will be loaded on demand as expected.
If you don't want this behavior for a certain plugin, you can specify that with `module=false`.
You can then manually load the plugin with `:Lazy load foobar.nvim`.
Colorscheme plugins can be configured with `lazy=true`. The plugin will automagically load
when doing `colorscheme foobar`.
You can configure **lazy.nvim** to lazy-load all plugins by default with `config.defaults.lazy = true`.
Additionally, you can also lazy-load on **events**, **commands**,