aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorMaria José Solano <majosolano99@gmail.com>2023-09-16 10:05:59 -0700
committerGitHub <noreply@github.com>2023-09-16 19:05:59 +0200
commit28f54a78782318cb9c356a372b9e52a3a6b1f8dd (patch)
tree51e7f8f1a2573a92d68e88ddc92b21db7d6954d3 /runtime/doc
parent7e5ce42977d7b2f223ca57e0237db778b8e424ea (diff)
downloadrneovim-28f54a78782318cb9c356a372b9e52a3a6b1f8dd.tar.gz
rneovim-28f54a78782318cb9c356a372b9e52a3a6b1f8dd.tar.bz2
rneovim-28f54a78782318cb9c356a372b9e52a3a6b1f8dd.zip
feat(treesitter): add lang parameter to the query editor (#25181)
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/treesitter.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt
index ee34c45cce..e1e280c4db 100644
--- a/runtime/doc/treesitter.txt
+++ b/runtime/doc/treesitter.txt
@@ -853,7 +853,7 @@ add_predicate({name}, {handler}, {force})
meanings
• {force} (boolean|nil)
-edit() *vim.treesitter.query.edit()*
+edit({lang}) *vim.treesitter.query.edit()*
Open a window for live editing of a treesitter query.
Can also be shown with `:EditQuery`. *:EditQuery*
@@ -861,6 +861,10 @@ edit() *vim.treesitter.query.edit()*
Note that the editor opens a scratch buffer, and so queries aren't
persisted on disk.
+ Parameters: ~
+ • {lang} (string|nil) language to open the query editor for. If
+ omitted, inferred from the current buffer's filetype.
+
get({lang}, {query_name}) *vim.treesitter.query.get()*
Returns the runtime query {query_name} for {lang}.