Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use vim.islist if available #158

Merged
merged 1 commit into from
May 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading