-
I just converted from packer to lazy. I use Alpha-Nvim as well. I am trying to get the number of installed plugins from lazy. I was using this with packer: What can I do instead for Lazy? Does something exist? |
Beta Was this translation helpful? Give feedback.
Answered by
yutkat
Apr 11, 2023
Replies: 2 comments 1 reply
-
local num_plugins_loaded = require("lazy").stats().count or local num_plugins_loaded = #vim.fn.globpath(vim.fn.stdpath("data") .. "/lazy", '*', 0, 1) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jakDev003
-
Thank you that works perfectly
…
On Apr 10, 2023 at 20:50, Yuta Katayama ***@***.***> wrote:
local num_plugins_loaded = require("lazy").stats().count
or
local num_plugins_loaded = #vim.fn.globpath(vim.fn.stdpath("data") .. "/lazy", '*', 0, 1)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
or