From c220f28b58309fdd5d8132917da1fe58fe99f6f6 Mon Sep 17 00:00:00 2001 From: Hass Khalid Date: Sat, 18 May 2024 04:10:17 +0100 Subject: [PATCH] fix: replaced deprecated vim.tbl_islist with vim.islist --- lua/nui/utils/init.lua | 4 ++-- tests/helpers/init.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/nui/utils/init.lua b/lua/nui/utils/init.lua index bd7504cc..ab2ad2fc 100644 --- a/lua/nui/utils/init.lua +++ b/lua/nui/utils/init.lua @@ -40,11 +40,11 @@ end ---@return boolean function utils.is_type(type_name, v) if type_name == "list" then - return vim.tbl_islist(v) + return vim.islist(v) end if type_name == "map" then - return type(v) == "table" and not vim.tbl_islist(v) + return type(v) == "table" and not vim.islist(v) end return type(v) == type_name diff --git a/tests/helpers/init.lua b/tests/helpers/init.lua index 420634e1..8e19e434 100644 --- a/tests/helpers/init.lua +++ b/tests/helpers/init.lua @@ -226,7 +226,7 @@ function popup.assert_border_lines(options, border_bufnr) local size = { width = options.size.width, height = options.size.height } local style = vim.deepcopy(options.border.style) - if vim.tbl_islist(style) then + if vim.islist(style) then style = { top_left = style[1], top = style[2],