diff --git a/doc/lazy.nvim.txt b/doc/lazy.nvim.txt index cbb3bdb..f5a7ef5 100644 --- a/doc/lazy.nvim.txt +++ b/doc/lazy.nvim.txt @@ -405,6 +405,35 @@ Any operation can alternatively be started with a sub command or API function: │:Lazy load {plugins} │require("lazy").load(plugins) │Load a plugin that has not been loaded yet. Similar to :packadd. Like :Lazy load foo.nvim │ +If you want to display the number of plugins on your dashboard, you can use +this simple API: + +>lua + local plugins = require("lazy").stats().count +< + + +**lazy.nvim** provides a statusline component that you can use to show the +number of pending updates. Make sure to enable `config.checker.enabled = true` +to make this work. + +Example of configuring lualine.nvim + +>lua + require("lualine").setup({ + sections = { + lualine_x = { + { + require("lazy.status").updates, + cond = require("lazy.status").has_updates, + color = { fg = "ff9e64" }, + }, + }, + }, + }) +< + + LOCKFILE `LAZY-LOCK.JSON` *lazy.nvim-lockfile-`lazy-lock.json`* After every **update**, the local lockfile is updated with the installed @@ -423,6 +452,9 @@ as possible. During startup, all lua files used before `VimEnter` or `BufReadPre` are byte-compiled and cached, similar to what impatient.nvim does. +My config for example loads in about `11ms` with `93` plugins. I do a lot of +lazy-loading though :) + **lazy.nvim** comes with an advanced profiler `:Lazy profile` to help you improve performance. The profiling view shows you why and how long it took to load your plugins.