From 19f4927ccf6bd8cd80b40d326701580affe8ff97 Mon Sep 17 00:00:00 2001 From: Sebastian Lyng Johansen Date: Thu, 16 May 2024 16:22:44 +0200 Subject: [PATCH] fix: use vim.islist if available --- lua/dropbar/configs.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/dropbar/configs.lua b/lua/dropbar/configs.lua index 9e78e1d7..16fcdf9b 100644 --- a/lua/dropbar/configs.lua +++ b/lua/dropbar/configs.lua @@ -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' },