From 63042310f4eaae19ff8a46dfd2ef931c1f498b0f Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 22 Dec 2022 09:09:35 +0100 Subject: [PATCH] feat(ui): show modpaths in debug --- lua/lazy/view/render.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/lazy/view/render.lua b/lua/lazy/view/render.lua index bf67683..66e7ca3 100644 --- a/lua/lazy/view/render.lua +++ b/lua/lazy/view/render.lua @@ -513,7 +513,11 @@ function M:debug() local Cache = require("lazy.core.cache") Util.foreach(Cache.cache, function(modname, entry) local kb = math.floor(#entry.chunk / 10.24) / 100 - self:append("● ", "LazySpecial", { indent = 2 }):append(modname):append(" " .. kb .. "Kb", "Bold"):nl() + self:append("● ", "LazySpecial", { indent = 2 }):append(modname):append(" " .. kb .. "Kb", "Bold") + if entry.modpath ~= modname then + self:append(" " .. vim.fn.fnamemodify(entry.modpath, ":p:~:."), "Comment") + end + self:nl() end) end