diff options
Diffstat (limited to 'nvim')
-rw-r--r-- | nvim/.config/nvim/lua/tobyvin/utils/log.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nvim/.config/nvim/lua/tobyvin/utils/log.lua b/nvim/.config/nvim/lua/tobyvin/utils/log.lua index d9ea285..65bf4ca 100644 --- a/nvim/.config/nvim/lua/tobyvin/utils/log.lua +++ b/nvim/.config/nvim/lua/tobyvin/utils/log.lua @@ -15,7 +15,14 @@ end setmetatable(log, { __call = function(t, m, l, o) - local msg = m + local msg + + if type(m) == "table" then + msg = table.concat(msg, "\n") + else + msg = m + end + if o and o.title then msg = string.format("%s: %s", o.title, msg) end |