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

refactor: use vim.islist() instead of deprecated vim.tbl_islist() #454

Merged
merged 1 commit into from
May 17, 2024
Merged

Conversation

xfzv
Copy link

@xfzv xfzv commented May 17, 2024

vim.tbl_islist() is deprecated and will be removed in Neovim 0.12. This causes depcrecation warnings on 0.11.
ref: https://github.com/neovim/neovim/blob/512d228111bccf3e52613c798edc7f803c1de13f/runtime/doc/deprecated.txt#L68

Testing for Regressions

I have tested the following:

  • Triggering keymaps from legendary.nvim in all modes (normal, insert, visual)
  • Creating keymaps via legendary.nvim, then triggering via the keymap in all modes (normal, insert, visual)
  • Triggering commands from legendary.nvim in all modes (normal, insert, visual)
  • Creating commands via legendary.nvim, then running the command manually from the command line
  • augroup/autocmds created through legendary.nvim work correctly

`vim.tbl_islist()` is deprecated and will be removed in Neovim 0.12.
This causes depcrecation warnings on 0.11.
ref:
https://github.com/neovim/neovim/blob/512d228111bccf3e52613c798edc7f803c1de13f/runtime/doc/deprecated.txt#L68
@xfzv xfzv changed the title use vim.islist() instead of deprecated vim.tbl_islist() refactor: use vim.islist() instead of deprecated vim.tbl_islist() May 17, 2024
Copy link
Owner

@mrjones2014 mrjones2014 left a comment

Choose a reason for hiding this comment

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

I appreciate you making it backwards compatible! Thanks for the PR!

@mrjones2014 mrjones2014 merged commit 38d1f39 into mrjones2014:master May 17, 2024
2 of 3 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.

2 participants