Skip to content
This repository was archived by the owner on Jan 17, 2024. It is now read-only.

Commit 926d0f9

Browse files
thatlittleboyclason
authored andcommitted
docs: mention :TSNodeUnderCursor in readme
1 parent 8a887bc commit 926d0f9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ require "nvim-treesitter.configs".setup {
9595

9696
The playground comes with `:TSHighlightCapturesUnderCursor` that shows any treesitter or syntax highlight groups under the cursor.
9797

98-
![image](https://user-images.githubusercontent.com/292349/119982982-6665ef00-bf74-11eb-93d5-9b214928c3a9.png)
98+
<img src="https://user-images.githubusercontent.com/292349/119982982-6665ef00-bf74-11eb-93d5-9b214928c3a9.png" width="450">
9999

100-
![image](https://user-images.githubusercontent.com/292349/119983093-8c8b8f00-bf74-11eb-9fa2-3670a8253fbd.png)
100+
<img src="https://user-images.githubusercontent.com/292349/119983093-8c8b8f00-bf74-11eb-9fa2-3670a8253fbd.png" width="450">
101+
102+
## Show treesitter node under the cursor
103+
104+
If you only wish to view information about the node your cursor is currently on (without having to open up the full tree), you can use `:TSNodeUnderCursor` instead.
105+
A floating window containing information about the parser, node name and row/col ranges will be shown.
106+
107+
<img src="https://user-images.githubusercontent.com/30731072/210166267-038c529b-f265-4439-8ed8-807b745cf026.png" width="450">

0 commit comments

Comments
 (0)