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

Changed vim.tbl_islist to vim.islist #88

Merged
merged 1 commit into from
May 18, 2024

Conversation

ColinKennedy
Copy link
Contributor

Fixes this this warning in Neovim 0.10+

vim.tbl_islist is deprecated, use vim.islist instead. :help deprecated
Feature will be removed in Nvim 0.12
stack traceback:
        vim/shared.lua: in function 'tbl_islist'
        ...personal/.config/nvim/bundle/dial.nvim/lua/dial/util.lua:41: in function 'validate_list'
        ...onfig/nvim/bundle/dial.nvim/lua/dial/augend/constant.lua:39: in function 'new'
        ...onfig/nvim/bundle/dial.nvim/lua/dial/augend/constant.lua:133: in main chunk
        [C]: in function 'require'
        ...rsonal/.config/nvim/bundle/dial.nvim/lua/dial/augend.lua:2: in main chunk
        [C]: in function 'require'
        ...rsonal/.config/nvim/bundle/dial.nvim/lua/dial/config.lua:1: in main chunk
        [C]: in function 'require'
        ...sonal/.config/nvim/bundle/dial.nvim/lua/dial/command.lua:4: in main chunk
        ...
        vim/_editor.lua: in function 'cmd'
        ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:485: in function <...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:484>
        [C]: in function 'xpcall'
        .../.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/util.lua:113: in function 'try'
        ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:484: in function 'source'
        ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:443: in function 'source_runtime'
        ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:411: in function 'packadd'
        ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:346: in function '_load'
        ...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:191: in function 'load'
        ...share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:122: in function <...share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:112>

This PR is compatible with Neovim version <0.9. If you don't need earlier versions using vim.islist should work as-is.

@monaqa monaqa linked an issue May 18, 2024 that may be closed by this pull request
Copy link
Owner

@monaqa monaqa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@monaqa monaqa merged commit 7af2daa into monaqa:master May 18, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecated function calls 0.10
2 participants