aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-09-04 14:27:15 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2020-09-04 15:24:23 +0200
commit3fd6e3b923402c2d513068a25d6425d040c5012b (patch)
tree3b6c160cd0bf802036b329dbfea5d9e2770b2616 /runtime/doc
parent3acfefb63ee70c8eac13bf6b308a0e73e6fb8007 (diff)
downloadrneovim-3fd6e3b923402c2d513068a25d6425d040c5012b.tar.gz
rneovim-3fd6e3b923402c2d513068a25d6425d040c5012b.tar.bz2
rneovim-3fd6e3b923402c2d513068a25d6425d040c5012b.zip
treesitter: allow to list supported predicates
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lua.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index e692274383..67a1554aa5 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -782,6 +782,11 @@ vim.treesitter.query.add_predicate({name}, {handler})
This adds a predicate with the name {name} to be used in queries.
{handler} should be a function whose signature will be : >
handler(match, pattern, bufnr, predicate)
+<
+ *vim.treesitter.query.list_predicates()*
+vim.treesitter.query.list_predicates()
+
+This lists the currently available predicates to use in queries.
Treesitter syntax highlighting (WIP) *lua-treesitter-highlight*