mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
lua: use WarningMsg for vim.notify() warnings (#14508)
This commit is contained in:
parent
26139d3085
commit
7b0edaac56
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user