mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
fix(messages): lsp window/showMessage is not an error
Ref https://github.com/neovim/neovim/discussions/32015
This commit is contained in:
@@ -702,14 +702,14 @@ local wait_result_reason = { [-1] = 'timeout', [-2] = 'interrupted', [-3] = 'err
|
||||
---
|
||||
--- @param ... string List to write to the buffer
|
||||
local function err_message(...)
|
||||
local chunks = { { table.concat({ ... }) } }
|
||||
local chunks = { { table.concat(vim.iter({ ... }):flatten():totable()) } }
|
||||
if vim.in_fast_event() then
|
||||
vim.schedule(function()
|
||||
vim.api.nvim_echo(chunks, true, { err = true })
|
||||
api.nvim_echo(chunks, true, { err = true })
|
||||
api.nvim_command('redraw')
|
||||
end)
|
||||
else
|
||||
vim.api.nvim_echo(chunks, true, { err = true })
|
||||
api.nvim_echo(chunks, true, { err = true })
|
||||
api.nvim_command('redraw')
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user