Skip to content

Conversation

@paulbrittain
Copy link
Contributor

  • fixes: 'Warning: vim.tbl_flatten is deprecated, use vim.iter(…):flatten():totable() instead.'
  • replaces usage of vim.tbl_flatten() while keeping backward compatibility for < v0.10.0.

fixes issue: #414

- fixes: 'Warning: vim.tbl_flatten is deprecated, use vim.iter(…):flatten():totable() instead.'
- replaces usage of vim.tbl_flatten() while keeping backward compatibility for < v0.10.0.
@jamestrew jamestrew requested a review from Copilot June 16, 2025 02:08
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses the deprecation warning by replacing the usage of vim.tbl_flatten() with vim.iter(...):flatten():totable() for Neovim 0.10+ support while retaining backward compatibility for earlier versions.

  • Replaces the direct use of vim.tbl_flatten() with a conditional that employs the new vim.iter(...):flatten():totable() syntax when available.
  • Maintains support for older Neovim versions by falling back to vim.tbl_flatten().

@jamestrew
Copy link
Collaborator

Pull Request Overview

This PR addresses the deprecation warning by replacing the usage of vim.tbl_flatten() with vim.iter(...):flatten():totable() for Neovim 0.10+ support while retaining backward compatibility for earlier versions.

  • Replaces the direct use of vim.tbl_flatten() with a conditional that employs the new vim.iter(...):flatten():totable() syntax when available.
  • Maintains support for older Neovim versions by falling back to vim.tbl_flatten().

First time using this. Was just curious.

Thanks

@jamestrew jamestrew merged commit 7bf55ed into nvim-telescope:master Jun 16, 2025
10 of 12 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