diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-09-04 17:01:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 17:01:49 +0200 |
commit | 1e14dacd08b52a541c9ff3b34c88629ea168d70b (patch) | |
tree | ee2a8162c29abcfe7ac81e41915e7fb142924dec /runtime/doc/lua.txt | |
parent | ef5a09d4fc6b87343755db681dbc1c339b428296 (diff) | |
parent | 3fd6e3b923402c2d513068a25d6425d040c5012b (diff) | |
download | rneovim-1e14dacd08b52a541c9ff3b34c88629ea168d70b.tar.gz rneovim-1e14dacd08b52a541c9ff3b34c88629ea168d70b.tar.bz2 rneovim-1e14dacd08b52a541c9ff3b34c88629ea168d70b.zip |
Merge pull request #12847 from nvim-treesitter/ts-list-predicates
treesitter: allow to list supported predicates
Diffstat (limited to 'runtime/doc/lua.txt')
-rw-r--r-- | runtime/doc/lua.txt | 5 |
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* |