feat(api): deprecate nvim_out/err_write(ln)

This commit is contained in:
Luuk van Baal
2025-01-07 16:38:29 +01:00
parent ead5683ff9
commit 5c92b40b4b
9 changed files with 98 additions and 133 deletions

View File

@@ -224,7 +224,7 @@ do
local function cmd(opts)
local ok, err = pcall(vim.api.nvim_cmd, opts, {})
if not ok then
vim.api.nvim_err_writeln(err:sub(#'Vim:' + 1))
vim.api.nvim_echo({ { err:sub(#'Vim:' + 1) } }, true, { err = true })
end
end