Skip to content

Commit 0f7828d

Browse files
committed
fix: avoid deprecated usage of vim.validate
1 parent 44d9b58 commit 0f7828d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lua/nvim-tree/utils.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,11 @@ end
349349
---@param dst_pos string value pos
350350
---@param remove boolean
351351
function M.move_missing_val(src, src_path, src_pos, dst, dst_path, dst_pos, remove)
352-
local ok, err = pcall(vim.validate, {
352+
local ok, err = pcall(function(arr)
353+
for key, value in pairs(arr) do
354+
vim.validate(key, value[1], value[2])
355+
end
356+
end, {
353357
src = { src, "table" },
354358
src_path = { src_path, "string" },
355359
src_pos = { src_pos, "string" },

0 commit comments

Comments
 (0)