aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/query.lua
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2021-07-25 20:47:24 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2021-07-25 20:52:05 +0200
commit5c42e2a87f41815980b380f9d83ec0144ff9bd90 (patch)
tree08d5c269f35314f254bb196ef3dbfda072486c01 /runtime/lua/vim/treesitter/query.lua
parent192adfe99f33778a85e11fbfdceb37f347a3d235 (diff)
downloadrneovim-5c42e2a87f41815980b380f9d83ec0144ff9bd90.tar.gz
rneovim-5c42e2a87f41815980b380f9d83ec0144ff9bd90.tar.bz2
rneovim-5c42e2a87f41815980b380f9d83ec0144ff9bd90.zip
docs(ts): add documentation for listing fns
Diffstat (limited to 'runtime/lua/vim/treesitter/query.lua')
-rw-r--r--runtime/lua/vim/treesitter/query.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/lua/vim/treesitter/query.lua b/runtime/lua/vim/treesitter/query.lua
index 0ba44ced1a..4ecd91d295 100644
--- a/runtime/lua/vim/treesitter/query.lua
+++ b/runtime/lua/vim/treesitter/query.lua
@@ -351,12 +351,12 @@ function M.add_directive(name, handler, force)
directive_handlers[name] = handler
end
---- Returns the list of currently supported directives
+--- @return The list of supported directives.
function M.list_directives()
return vim.tbl_keys(directive_handlers)
end
---- Returns the list of currently supported predicates
+--- @return The list of supported predicates.
function M.list_predicates()
return vim.tbl_keys(predicate_handlers)
end