fix(diagnostic): nvim_echo takes three args (#15687)

Fixup for https://github.com/neovim/neovim/pull/15585
Closes https://github.com/neovim/neovim/issues/15686
This commit is contained in:
Christian Clason
2021-09-17 09:21:17 +02:00
committed by GitHub
parent c13242cf47
commit 4881456e83

View File

@@ -631,7 +631,7 @@ local function diagnostic_move_pos(opts, pos)
local win_id = opts.win_id or vim.api.nvim_get_current_win()
if not pos then
vim.api.nvim_echo({"No more valid diagnostics to move to", "WarningMsg"})
vim.api.nvim_echo({{"No more valid diagnostics to move to", "WarningMsg"}}, true, {})
return
end