Skip to content

Commit f3af022

Browse files
committed
fix(status): use vim.tbl_islist to resolve 0.9 compatibility
1 parent 6d25aab commit f3af022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/astroui/status/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ end
136136
---@return function # The Heirline init function
137137
-- @usage local heirline_component = { init = require("astroui.status").init.update_events { "BufEnter", { "User", pattern = "LspProgressUpdate" } } }
138138
function M.update_events(opts)
139-
if not vim.tbl_isarray(opts) then opts = { opts } end
139+
if not vim.tbl_islist(opts) then opts = { opts } end
140140
---@cast opts AstroUIUpdateEvent[]
141141
return function(self)
142142
if not rawget(self, "once") then

0 commit comments

Comments
 (0)