jghauser / follow-md-links.nvim

Easily follow markdown links with this neovim plugin
GNU General Public License v3.0
143 stars 16 forks source link

`vim.tressitter.query.get_node_text` deprecation #13

Closed adrian5 closed 1 year ago

adrian5 commented 1 year ago

With nvim 0.9 stable, there now is a deprecation warning from the API:

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

A straight forward adaptation that retains backward compatibility can be seen e.g. here:

local get_node_text = vim.treesitter.get_node_text or vim.treesitter.query.get_node_text

It should be straight forward to do adapt follow-md-links.lua accordingly.

jghauser commented 1 year ago

This should be fixed thanks to the above PR! Feel free to re-open if you run into issues