Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
TwIStOy committed Apr 23, 2024
1 parent caf188d commit f1ed850
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lua/dotvim/bootstrap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ function M.setup()
local all_keys
if plugin.keys == nil then
all_keys = {}
elseif vim.tbl_isarray(plugin.keys) then
elseif vim.isarray(plugin.keys) then
all_keys = plugin.keys --[[ @as LazyKeysSpec[] ]]
else
all_keys = { plugin.keys }
end
local actions
if type(plugin.actions) == "function" then
actions = plugin.actions()
elseif vim.tbl_isarray(plugin.actions) then
elseif vim.isarray(plugin.actions) then
actions = plugin.actions
else
actions = { plugin.actions }
Expand Down
2 changes: 1 addition & 1 deletion lua/dotvim/core/action.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function Action:into_lazy_keys_spec()
},
}
end
if not vim.tbl_isarray(keys) then
if not vim.isarray(keys) then
keys = { keys }
end

Expand Down
4 changes: 2 additions & 2 deletions lua/dotvim/utils/tbl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function M.list_reverse(lst)
end

local function normalize_search_table(tbl)
if vim.tbl_isarray(tbl) then
if vim.isarray(tbl) then
local ret = {}
for _, v in ipairs(tbl) do
ret[#ret + 1] = v
Expand Down Expand Up @@ -62,7 +62,7 @@ function M.flatten_array(tbl)
return { tbl }
end

if vim.tbl_isarray(tbl) then
if vim.isarray(tbl) then
local res = {}
for _, value in ipairs(tbl) do
local inner_value = M.flatten_array(value)
Expand Down

0 comments on commit f1ed850

Please sign in to comment.