Skip to content

fix: address deprecation for vim.F.if_nil() for >=v0.13#673

Open
DrKJeff16 wants to merge 1 commit into
akinsho:mainfrom
DrKJeff16:fix/nonnil-deprecation
Open

fix: address deprecation for vim.F.if_nil() for >=v0.13#673
DrKJeff16 wants to merge 1 commit into
akinsho:mainfrom
DrKJeff16:fix/nonnil-deprecation

Conversation

@DrKJeff16

@DrKJeff16 DrKJeff16 commented Jul 5, 2026

Copy link
Copy Markdown

Description

vim.F.if_nil() has been deprecated for Neovim >=v0.13 in favour of vim.nonnil().
To address this I made a simple check to see if Neovim >=v0.13 is running, if <v0.13 then the legacy vim.F.if_nil() will be used.

I've ensured that no backwards compatibility will be compromised. The plugin with this change works fine.

This closes #674.

Would like your feedback!

Signed-off-by: Guennadi Maximov C <g.maxc.fox@protonmail.com>
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.

[BUG] vim.F.if_nil() is deprecated in Neovim >=v0.13

1 participant