nvim-treesitter / playground

Treesitter playground integrated into Neovim
Apache License 2.0
897 stars 47 forks source link

fix get_node_text to vim.treesitter.query.get_node_text #85

Closed Decodetalkers closed 2 years ago

Decodetalkers commented 2 years ago

deperate function , move to vim.treesitter.query.get_node_text

clason commented 2 years ago

Thank you, but these two functions are not the same -- it's unfortunate that they have the same name, but the behavior is different. We can't switch until https://github.com/neovim/neovim/pull/18232 is done.

max397574 commented 2 years ago

you could also just add a vim.split(...,"\n") @clason couldn't you? or will this pr change anything about this?