mirror of
https://github.com/neovim/neovim.git
synced 2025-12-06 22:52:42 +00:00
feat(api): add err field to nvim_echo() opts
Problem: We want to deprecate `nvim_err_write(ln)()` but there is no
obvious replacement (from Lua). Meanwhile we already have
`nvim_echo()` with an `opts` argument.
Solution: Add `err` argument to `nvim_echo()` that directly maps to
`:echoerr`.
This commit is contained in:
2
runtime/lua/vim/_meta/api.lua
generated
2
runtime/lua/vim/_meta/api.lua
generated
@@ -1104,6 +1104,8 @@ function vim.api.nvim_del_var(name) end
|
||||
--- `hl_group` element can be omitted for no highlight.
|
||||
--- @param history boolean if true, add to `message-history`.
|
||||
--- @param opts vim.api.keyset.echo_opts Optional parameters.
|
||||
--- - err: Treat the message like `:echoerr`. Omitted `hlgroup`
|
||||
--- uses `hl-ErrorMsg` instead.
|
||||
--- - verbose: Message is printed as a result of 'verbose' option.
|
||||
--- If Nvim was invoked with -V3log_file, the message will be
|
||||
--- redirected to the log_file and suppressed from direct output.
|
||||
|
||||
Reference in New Issue
Block a user