Skip to content

Fix deprecation warning for tbl_flatten#103

Open
topaxi wants to merge 1 commit into
norcalli:masterfrom
topaxi:fix-deprecation-warning
Open

Fix deprecation warning for tbl_flatten#103
topaxi wants to merge 1 commit into
norcalli:masterfrom
topaxi:fix-deprecation-warning

Conversation

@topaxi

@topaxi topaxi commented Jun 20, 2024

Copy link
Copy Markdown

Newer nvim versions have an iter interface to several table/list operations and deprecated tbl_flatten.

This should fix the deprecation warning in a backwards compatible fashion.

@Dmitrev

Dmitrev commented Mar 28, 2025

Copy link
Copy Markdown

@norcalli could you have a look at this? This issue starts showing in the latest nvim nightly.

- WARNING vim.tbl_flatten is deprecated. Feature will be removed in Nvim 0.13
  - ADVICE:
    - use vim.iter(…):flatten():totable() instead.
    - stack traceback:
        /home/user/.local/share/nvim/lazy/nvim-colorizer.lua/lua/colorizer/nvim.lua:96

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