kevinhwang91 / nvim-ufo

Not UFO in the sky, but an ultra fold in Neovim.
BSD 3-Clause "New" or "Revised" License
2.16k stars 37 forks source link

vim.treesitter.query.get_query() is deprecated #175

Closed georgeharker closed 8 months ago

georgeharker commented 8 months ago

Neovim version (nvim -v | head -n1)

NVIM 0,9.4

Operating system/version

MacOS and linux

How to reproduce the issue

fire up nvim on a file which uses folding

vim.treesitter.query.get_query() is deprecated, use vim.treesitter.query.get() instead. :help deprecated                                   
This feature will be removed in Nvim version 0.10                                                                                          

It looks like others like telescope have fixed this with a check

eg

https://github.com/nvim-telescope/telescope.nvim/commit/359e9ffc74511c1afaf744cf705819cac90d8ed3

Expected behavior

no deprecation warning

Actual behavior

deprecation warning issued

kevinhwang91 commented 8 months ago

can't reproduce.

rockyzhang24 commented 8 months ago

I can’t reproduce it either.

georgeharker commented 8 months ago

Strange. I’ll do some digging. I suspect this will come up sooner or later as binaries get updated as other projects had to do this. But perhaps it’s a very recent change