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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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() local win_id = opts.win_id or vim.api.nvim_get_current_win()
if not pos then 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 return
end end