style: show full trace when debug=true

This commit is contained in:
Folke Lemaitre 2023-10-22 14:24:27 +02:00
parent 9788a19ec0
commit 6b7b4c5b96
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ function M.pretty_trace(opts)
if not info then
break
end
if info.what ~= "C" and not info.source:find("lazy.nvim") then
if info.what ~= "C" and (Config.options.debug or not info.source:find("lazy.nvim")) then
local source = info.source:sub(2)
if source:find(Config.options.root, 1, true) == 1 then
source = source:sub(#Config.options.root + 1)