mirror of https://github.com/folke/lazy.nvim.git
style: show full trace when debug=true
This commit is contained in:
parent
9788a19ec0
commit
6b7b4c5b96
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue