lua: use WarningMsg for vim.notify() warnings (#14508)

This commit is contained in:
Shadman 2021-05-10 18:26:39 +06:00 committed by GitHub
parent 26139d3085
commit 7b0edaac56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -522,6 +522,8 @@ function vim.notify(msg, log_level, _opts)
if log_level == vim.log.levels.ERROR then
vim.api.nvim_err_writeln(msg)
elseif log_level == vim.log.levels.WARN then
vim.api.nvim_echo({{msg, 'WarningMsg'}}, true, {})
else
vim.api.nvim_echo({{msg}}, true, {})
end