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

This commit is contained in:
temhelk
2024-10-18 03:20:58 +03:00
committed by Lewis Russell
parent 31745b17e6
commit 564173e556

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 = ''