add winnr to get_node_at_cursor

This commit is contained in:
kiyan42 2020-06-19 14:13:23 +02:00
parent cabe61ac19
commit cf72524b2f
3 changed files with 5 additions and 4 deletions

View file

@ -99,7 +99,8 @@ Nvim treesitter has some wrapper functions that you can retrieve with:
<
Methods
get_node_at_cursor() *ts_utils.get_node_at_cursor*
get_node_at_cursor(winnr) *ts_utils.get_node_at_cursor*
winnr will be 0 if nil
returns the node under the cursor
get_node_text(node, bufnr) *ts_utils.get_node_text*