Skip to content

How to get the number of installed plugins #719

Answered by yutkat
jakDev003 asked this question in Q&A
Discussion options

You must be logged in to vote
local num_plugins_loaded = require("lazy").stats().count

or

local num_plugins_loaded = #vim.fn.globpath(vim.fn.stdpath("data") .. "/lazy", '*', 0, 1)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by jakDev003
Comment options

You must be logged in to vote
1 reply
@yutkat
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants