Skip to content

Commit 924a416

Browse files
committed
fix(status): add check for new islist function
1 parent 9e7b8a3 commit 924a416

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/astroui/status/init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ end
137137
---@return function # The Heirline init function
138138
-- @usage local heirline_component = { init = require("astroui.status").init.update_events { "BufEnter", { "User", pattern = "LspProgressUpdate" } } }
139139
function M.update_events(opts)
140-
if not vim.tbl_islist(opts) then opts = { opts } end
140+
-- TODO: remove check after dropping support for Neovim v0.9
141+
if not (vim.islist or vim.tbl_islist)(opts) then opts = { opts } end
141142
---@cast opts AstroUIUpdateEvent[]
142143
return function(self)
143144
if not rawget(self, "once") then

0 commit comments

Comments
 (0)