home ~ socials ~ projects ~ rss

Get Tree-Sitter Start And End Ranges In Neovim

October 2023

Notes

  • look at the executor
  • iter_catpures
  • to node
  • local range_values = { node:range() }
  • range_value[1] - start row
  • range_value[2] - start col
  • range_value[3] - end row
  • range_value[4] - end col
end of line
Share link:
https://www.alanwsmith.com/en/2x/3l/xg/zh/?get-tree-sitter-start-and-end-ranges-in-neovim