fix: log levels at echo

dev
Pocco81 2 years ago
parent 3c158484cd
commit 9cd81ff6e1

@ -5,13 +5,13 @@ return function(msg, kind)
local level = {} local level = {}
if kind == "error" then if kind == "error" then
level.log = vim.log.kinds.ERROR level.log = vim.log.levels.ERROR
level.type = "error" level.type = "error"
elseif kind == "warn" then elseif kind == "warn" then
level.log = vim.log.kinds.WARN level.log = vim.log.levels.WARN
level.type = "error" level.type = "error"
else else
level.log = kind or vim.log.kinds.INFO level.log = kind or vim.log.levels.INFO
level.type = "info" level.type = "info"
end end

Loading…
Cancel
Save