diff --git a/README.md b/README.md index c323e93..5a0b6b0 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,13 @@ require "nvim-treesitter.configs".setup { The playground comes with `:TSHighlightCapturesUnderCursor` that shows any treesitter or syntax highlight groups under the cursor. -![image](https://user-images.githubusercontent.com/292349/119982982-6665ef00-bf74-11eb-93d5-9b214928c3a9.png) + -![image](https://user-images.githubusercontent.com/292349/119983093-8c8b8f00-bf74-11eb-9fa2-3670a8253fbd.png) + + +## Show treesitter node under the cursor + +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. +A floating window containing information about the parser, node name and row/col ranges will be shown. + +