Skip to content

Commit

Permalink
fix(compat-0.11): use vim.islist if available (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
seblj authored May 16, 2024
1 parent 3dd8edb commit 9fc10fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/dropbar/configs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -658,8 +658,10 @@ M.opts = {
---@param new_opts dropbar_configs_t?
function M.set(new_opts)
new_opts = new_opts or {}

local islist = vim.islist or vim.tbl_islist
-- Notify deprecated options
if new_opts.general and vim.tbl_islist(new_opts.general.update_events) then
if new_opts.general and islist(new_opts.general.update_events) then
vim.api.nvim_echo({
{ '[dropbar.nvim] ', 'Normal' },
{ 'opts.general.update_events', 'WarningMsg' },
Expand Down

0 comments on commit 9fc10fa

Please sign in to comment.