From 3fd6e3b923402c2d513068a25d6425d040c5012b Mon Sep 17 00:00:00 2001 From: Thomas Vigouroux Date: Fri, 4 Sep 2020 14:27:15 +0200 Subject: treesitter: allow to list supported predicates --- runtime/doc/lua.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'runtime/doc') 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* -- cgit