Skip to content

Commit 7225b05

Browse files
chore(build): auto-generate vimdoc
1 parent 17fd57a commit 7225b05

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

doc/lazy.nvim.txt

+32
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,35 @@ Any operation can alternatively be started with a sub command or API function:
405405
│:Lazy load {plugins} │require("lazy").load(plugins) │Load a plugin that has not been loaded yet. Similar to :packadd. Like :Lazy load foo.nvim │
406406

407407

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+
408437
LOCKFILE `LAZY-LOCK.JSON` *lazy.nvim-lockfile-`lazy-lock.json`*
409438

410439
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
423452
`BufReadPre` are byte-compiled and cached, similar to what impatient.nvim
424453
<https://github.com/lewis6991/impatient.nvim> does.
425454

455+
My config for example loads in about `11ms` with `93` plugins. I do a lot of
456+
lazy-loading though :)
457+
426458
**lazy.nvim** comes with an advanced profiler `:Lazy profile` to help you
427459
improve performance. The profiling view shows you why and how long it took to
428460
load your plugins.

0 commit comments

Comments
 (0)