fix(debug): include main in caller

This commit is contained in:
Folke Lemaitre 2024-11-21 22:08:29 +01:00
parent c359164872
commit 33d31af150
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -19,7 +19,7 @@ function M.inspect(...)
if
info
and info.source ~= caller.source
and info.what == "Lua"
and info.what ~= "C"
and info.source ~= "lua"
and info.source ~= "@" .. (vim.env.MYVIMRC or "")
then