We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
islist
1 parent 9e7b8a3 commit 924a416Copy full SHA for 924a416
lua/astroui/status/init.lua
@@ -137,7 +137,8 @@ end
137
---@return function # The Heirline init function
138
-- @usage local heirline_component = { init = require("astroui.status").init.update_events { "BufEnter", { "User", pattern = "LspProgressUpdate" } } }
139
function M.update_events(opts)
140
- if not vim.tbl_islist(opts) then opts = { opts } end
+ -- TODO: remove check after dropping support for Neovim v0.9
141
+ if not (vim.islist or vim.tbl_islist)(opts) then opts = { opts } end
142
---@cast opts AstroUIUpdateEvent[]
143
return function(self)
144
if not rawget(self, "once") then
0 commit comments