aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorDylan Kendal <dylankendal@gmail.com>2021-08-20 01:35:25 -0400
committerDylan Kendal <dylankendal@gmail.com>2021-08-20 11:58:15 -0400
commit140084180e82bea3afafa32a33fee37e6e9473ca (patch)
tree73c33ba7ddb3fd954fa78f6003c55997b836266f /runtime
parent2ae9ff128583984145ce38e61bbe9047871616bf (diff)
downloadrneovim-140084180e82bea3afafa32a33fee37e6e9473ca.tar.gz
rneovim-140084180e82bea3afafa32a33fee37e6e9473ca.tar.bz2
rneovim-140084180e82bea3afafa32a33fee37e6e9473ca.zip
feat(treesitter): add next, prev sibling method
Add tsnode methods to change to the next, previous, named or unnamed nodes.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/treesitter.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt
index 906e2d716a..379523722e 100644
--- a/runtime/doc/treesitter.txt
+++ b/runtime/doc/treesitter.txt
@@ -86,6 +86,18 @@ Node methods *lua-treesitter-node*
tsnode:parent() *tsnode:parent()*
Get the node's immediate parent.
+tsnode:next_sibling() *tsnode:next_sibling()*
+ Get the node's next sibling.
+
+tsnode:prev_sibling() *tsnode:prev_sibling()*
+ Get the node's previous sibling.
+
+tsnode:next_named_sibling() *tsnode:next_named_sibling()*
+ Get the node's next named sibling.
+
+tsnode:prev_named_sibling() *tsnode:prev_named_sibling()*
+ Get the node's previous named sibling.
+
tsnode:iter_children() *tsnode:iter_children()*
Iterates over all the direct children of {tsnode}, regardless of
wether they are named or not.