mirror of
https://github.com/neovim/neovim.git
synced 2025-11-03 09:14:24 +00:00
perf(diagnostic): use api variable and improve validate (#21111)
* fix(diagnostic): use api variable and improve validate * fix: fix test case
This commit is contained in:
@@ -1776,7 +1776,7 @@ end)
|
||||
return lines
|
||||
]])
|
||||
|
||||
eq(".../diagnostic.lua:0: prefix: expected 'string' or 'table' or 'function', got 42",
|
||||
eq(".../diagnostic.lua:0: prefix: expected string|table|function, got number",
|
||||
pcall_err(exec_lua, [[ vim.diagnostic.open_float({ prefix = 42 }) ]]))
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user