Skip to content

Commit

Permalink
fix(status): use vim.tbl_islist to resolve 0.9 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Dec 21, 2023
1 parent 6d25aab commit f3af022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/astroui/status/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ end
---@return function # The Heirline init function
-- @usage local heirline_component = { init = require("astroui.status").init.update_events { "BufEnter", { "User", pattern = "LspProgressUpdate" } } }
function M.update_events(opts)
if not vim.tbl_isarray(opts) then opts = { opts } end
if not vim.tbl_islist(opts) then opts = { opts } end
---@cast opts AstroUIUpdateEvent[]
return function(self)
if not rawget(self, "once") then
Expand Down

0 comments on commit f3af022

Please sign in to comment.