We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f45fdda commit c15a0f9Copy full SHA for c15a0f9
lua/commons/log.lua
@@ -66,10 +66,12 @@ local function log(level, msg)
66
if LogConfigs.use_console and level >= LogLevels.INFO then
67
local msg_chunks = {}
68
for _, line in ipairs(msg_lines) do
69
- table.insert(msg_chunks, {
70
- string.format("[%s] %s", LogConfigs.name, line),
71
- LogHighlights[level],
72
- })
+ if type(line) == "string" and string.len(line) > 0 then
+ table.insert(msg_chunks, {
+ string.format("[%s] %s", LogConfigs.name, line),
+ LogHighlights[level],
73
+ })
74
+ end
75
end
76
vim.schedule(function()
77
vim.api.nvim_echo(msg_chunks, false, {})
0 commit comments