commit 435f03ee106a548c2e5fd6c10005f5ae2a29a5a4
parent bb6422f1ad67d66d7245dc0e6d547539cef6ba31
Author: Phạm Bình An <111893501+brianhuster@users.noreply.github.com>
Date: Tue, 8 Jul 2025 19:28:12 +0700
docs: tag of `:EditQuery` #34844
Problem:
- Running `:h :EditQuery` throws error `E149: Sorry, no help for
:EditQuery`
- vim_diff.txt miss an entry for `:EditQuery`
Solution:
- Make tag `[:EditQuery]()` right-aligned, similar to command `:Open`
- Update vim_diff.txt
Diffstat:
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt
@@ -1321,7 +1321,7 @@ add_predicate({name}, {handler}, {opts})
edit({lang}) *vim.treesitter.query.edit()*
Opens a live editor to query the buffer you started from.
- Can also be shown with *:EditQuery*.
+ Can also be shown with `:EditQuery`. *:EditQuery*
If you move the cursor to a capture name ("@foo"), text matching the
capture is highlighted in the source buffer. The query editor is a scratch
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
@@ -301,6 +301,7 @@ Commands:
- |:checkhealth|
- |:detach|
- |:drop| is always available
+- |:EditQuery|
- |:Inspect|
- |:InspectTree|
- |:Man| is available by default, with many improvements such as completion
diff --git a/runtime/lua/vim/treesitter/query.lua b/runtime/lua/vim/treesitter/query.lua
@@ -1163,7 +1163,7 @@ end
--- Opens a live editor to query the buffer you started from.
---
---- Can also be shown with [:EditQuery]().
+--- Can also be shown with `:EditQuery`. [:EditQuery]()
---
--- If you move the cursor to a capture name ("@foo"), text matching the capture is highlighted in
--- the source buffer. The query editor is a scratch buffer, use `:write` to save it. You can find