We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
vim.tbl_islist
1 parent 6d25aab commit f3af022Copy full SHA for f3af022
lua/astroui/status/init.lua
@@ -136,7 +136,7 @@ end
136
---@return function # The Heirline init function
137
-- @usage local heirline_component = { init = require("astroui.status").init.update_events { "BufEnter", { "User", pattern = "LspProgressUpdate" } } }
138
function M.update_events(opts)
139
- if not vim.tbl_isarray(opts) then opts = { opts } end
+ if not vim.tbl_islist(opts) then opts = { opts } end
140
---@cast opts AstroUIUpdateEvent[]
141
return function(self)
142
if not rawget(self, "once") then
0 commit comments