@@ -405,6 +405,35 @@ Any operation can alternatively be started with a sub command or API function:
405
405
│:Lazy load {plugins} │require("lazy").load(plugins) │Load a plugin that has not been loaded yet. Similar to :packadd. Like :Lazy load foo.nvim │
406
406
407
407
408
+ If you want to display the number of plugins on your dashboard, you can use
409
+ this simple API:
410
+
411
+ >lua
412
+ local plugins = require("lazy").stats().count
413
+ <
414
+
415
+
416
+ **lazy.nvim** provides a statusline component that you can use to show the
417
+ number of pending updates. Make sure to enable `config.checker.enabled = true`
418
+ to make this work.
419
+
420
+ Example of configuring <a href="https://github.com/nvim-lualine/lualine.nvim ">lualine.nvim</a>
421
+
422
+ >lua
423
+ require("lualine").setup({
424
+ sections = {
425
+ lualine_x = {
426
+ {
427
+ require("lazy.status").updates,
428
+ cond = require("lazy.status").has_updates,
429
+ color = { fg = "ff9e64" },
430
+ },
431
+ },
432
+ },
433
+ })
434
+ <
435
+
436
+
408
437
LOCKFILE `LAZY- LOCK.JSON` *lazy.nvim-lockfile-`lazy-lock.json`*
409
438
410
439
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
423
452
`BufReadPre ` are byte-compiled and cached, similar to what impatient.nvim
424
453
<https://github.com/lewis6991/impatient.nvim > does.
425
454
455
+ My config for example loads in about `11 ms` with `93 ` plugins. I do a lot of
456
+ lazy-loading though :)
457
+
426
458
**lazy.nvim** comes with an advanced profiler `:Lazy profile` to help you
427
459
improve performance. The profiling view shows you why and how long it took to
428
460
load your plugins.
0 commit comments