From f449121764c19cebda7b8b2c970b76bc8121bae7 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Thu, 2 Mar 2023 18:03:11 +0100 Subject: feat(treesitter): add :InspectTree command (#22477) --- runtime/doc/news.txt | 5 +++-- runtime/doc/treesitter.txt | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'runtime/doc') diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 226444ccb5..0ffd335520 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -89,8 +89,9 @@ The following new APIs or features were added. See |lsp-semantic_tokens| for more information. -• |vim.treesitter.inspect_tree()| opens a split window showing a text - representation of the nodes in a language tree for the current buffer. +• |vim.treesitter.inspect_tree()| and |:InspectTree| opens a split window + showing a text representation of the nodes in a language tree for the current + buffer. • Added support for the `willSave` and `willSaveWaitUntil` capabilities to the LSP client. `willSaveWaitUntil` allows a server to modify a document before it diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt index b75e879424..5ac24de70a 100644 --- a/runtime/doc/treesitter.txt +++ b/runtime/doc/treesitter.txt @@ -603,6 +603,8 @@ inspect_tree({opts}) *vim.treesitter.inspect_tree()* to toggle the display of the source language of each node, and press to jump to the node under the cursor in the source buffer. + Can also be shown with `:InspectTree`. *:InspectTree* + Parameters: ~ • {opts} (table|nil) Optional options table with the following possible keys: -- cgit