From 564173e5568ccf11bf6554680922d3716fb6862b Mon Sep 17 00:00:00 2001 From: temhelk Date: Fri, 18 Oct 2024 03:20:58 +0300 Subject: fix(lsp.util): wrong arguments to 'validate' function --- runtime/lua/vim/lsp/util.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/lua/vim') diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index e3eef8901b..83c8226326 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -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 = '' -- cgit