From 4d9175837dbf9a2f8c905b02fbf9faa939ed8c64 Mon Sep 17 00:00:00 2001 From: rootiest Date: Wed, 17 Jul 2024 14:56:39 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8E=20Add=20Lazy=20Profiling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Adds additional debugging flags to better track plugin loading times --- lua/config/lazy.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index b61c0d9..d88fd3c 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -19,9 +19,9 @@ vim.opt.rtp:prepend(vim.env.LAZY or lazypath) require("lazy").setup({ spec = { { "LazyVim/LazyVim", import = "lazyvim.plugins" }, - { import = "ui" }, - { import = "plugins" }, - { import = "themes" }, + { import = "ui" }, -- UI Plugins + { import = "plugins" }, -- General Plugins + { import = "themes" }, -- Theme Plugins }, defaults = { lazy = false, version = false }, checker = { enabled = true }, @@ -37,4 +37,9 @@ require("lazy").setup({ }, }, }, + profiling = { + -- Track the time spent loading plugins + loader = true, + require = true, + }, })