mirror of
https://github.com/neovim/neovim.git
synced 2026-07-12 20:30:35 +00:00
feat(treesitter): add :InspectTree command (#22477)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -603,6 +603,8 @@ inspect_tree({opts}) *vim.treesitter.inspect_tree()*
|
||||
to toggle the display of the source language of each node, and press
|
||||
<Enter> 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:
|
||||
|
||||
Reference in New Issue
Block a user