From 8de617c01b572965d8a48362597fce01dc3ebcc7 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 14 Dec 2022 16:07:32 +0100 Subject: [PATCH] feat: getter for plugins --- lua/lazy/init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/lazy/init.lua b/lua/lazy/init.lua index a4aa4fc..0251c8a 100644 --- a/lua/lazy/init.lua +++ b/lua/lazy/init.lua @@ -74,4 +74,9 @@ function M.bootstrap() end end +---@return LazyPlugin[] +function M.plugins() + return vim.tbl_values(require("lazy.core.config").plugins) +end + return M