From 14dded2134c91d1532a6a6527ee5fd0a2684ed31 Mon Sep 17 00:00:00 2001
From: Jeremy Goh <30731072+thatlittleboy@users.noreply.github.com>
Date: Sun, 1 Jan 2023 17:33:06 +0800
Subject: [PATCH] docs: mention `:TSNodeUnderCursor` in readme
---
README.md | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
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.
-
+
-
+
+
+## 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.
+
+