diff options
Diffstat (limited to '')
-rwxr-xr-x | lua/dep/log.lua | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lua/dep/log.lua b/lua/dep/log.lua index d719772..7ed32ee 100755 --- a/lua/dep/log.lua +++ b/lua/dep/log.lua @@ -43,11 +43,15 @@ function logger:log(op, message) end if not self.silent and colors[op] then - vim.api.nvim_echo({ - { "[dep]", "Identifier" }, - { " " }, - { message, colors[op] }, - }, true, {}) + if op == "error" then + vim.api.nvim_err_writeln(string.format("[dep] %s", message)) + else + vim.api.nvim_echo({ + { "[dep]", "Identifier" }, + { " " }, + { message, colors[op] }, + }, true, {}) + end end if self.pipe then |