Print to stderr instead of normal echo if log message is of type error
This commit is contained in:
@ -43,11 +43,15 @@ function logger:log(op, message)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if not self.silent and colors[op] then
|
if not self.silent and colors[op] then
|
||||||
vim.api.nvim_echo({
|
if op == "error" then
|
||||||
{ "[dep]", "Identifier" },
|
vim.api.nvim_err_writeln(string.format("[dep] %s", message))
|
||||||
{ " " },
|
else
|
||||||
{ message, colors[op] },
|
vim.api.nvim_echo({
|
||||||
}, true, {})
|
{ "[dep]", "Identifier" },
|
||||||
|
{ " " },
|
||||||
|
{ message, colors[op] },
|
||||||
|
}, true, {})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.pipe then
|
if self.pipe then
|
||||||
|
Reference in New Issue
Block a user