fix(lsp.util): wrong arguments to 'validate' function

This commit is contained in:
temhelk authored and Lewis Russell committed 2024-10-18 07:37:36 +01:00
1 parent 31745b17e6
commit 564173e556
1 file changed
+2 -2
+2 -2
View File
@@ -888,8 +888,8 @@ end
function M.make_floating_popup_options(width, height, opts)
validate('opts', opts, 'table', true)
opts = opts or {}
validate('opts.offset_x', opts.offset_x, 'n', true)
validate('opts.offset_y', opts.offset_y, 'n', true)
validate('opts.offset_x', opts.offset_x, 'number', true)
validate('opts.offset_y', opts.offset_y, 'number', true)
local anchor = ''