u/Striking_Theme_2535

▲ 1 r/neovim

How can I get the number of installed plugins in vim.pack?

Hello! I'm migrating from Lazy to vim.pack these days, and everything works really well for me except one thing: how can I get the number of installed plugins, or even better, loaded plugins? I usually display the number in my alpha dashboard, and with Lazy I could get it as simply as:

local stats = require("lazy").stats()
local total_plugins = stats.count

How can I achieve the same with vim.pack?

reddit.com
u/Striking_Theme_2535 — 23 hours ago