diff options
| author | kiyan42 <yazdani.kiyan@protonmail.com> | 2020-06-19 14:13:23 +0200 |
|---|---|---|
| committer | kiyan42 <yazdani.kiyan@protonmail.com> | 2020-06-19 14:13:23 +0200 |
| commit | cf72524b2f7e3868ea74037004913af6f935f126 (patch) | |
| tree | fb9e1984ed56efeedb05e9adbf5041d2ce390516 /doc | |
| parent | cabe61ac19a2d0377a46ef48499eb292e12ae5fb (diff) | |
add winnr to get_node_at_cursor
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/nvim-treesitter.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/nvim-treesitter.txt b/doc/nvim-treesitter.txt index 27e4f0bb..bb53e182 100644 --- a/doc/nvim-treesitter.txt +++ b/doc/nvim-treesitter.txt @@ -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* |
