diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt index 01d0b7e192..02802328d0 100644 --- 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 index 51d6e8ef38..74e9a597c2 100644 --- 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 index 1e77a0021a..3963ca52ad 100644 --- 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