home ~ projects ~ socials

Get Tree-Sitter Start And End Ranges In Neovim

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 --