aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-10-04 02:13:31 -0700
committerGitHub <noreply@github.com>2024-10-04 02:13:31 -0700
commitb45c50f3140e7ece593f2126840900f5cc3d39ea (patch)
tree20e9c304a14f129c26be769f9171dba0bcaba5b9 /runtime/lua/vim/treesitter.lua
parentf62728cd80a9c458b1c0ef7c5c1251e55fe91090 (diff)
downloadrneovim-b45c50f3140e7ece593f2126840900f5cc3d39ea.tar.gz
rneovim-b45c50f3140e7ece593f2126840900f5cc3d39ea.tar.bz2
rneovim-b45c50f3140e7ece593f2126840900f5cc3d39ea.zip
docs: render `@since` versions, 0 means experimental #30649
An implication of this current approach is that `NVIM_API_LEVEL` should be bumped when a new Lua function is added. TODO(future): add a lint check which requires `@since` on all new functions. ref #25416
Diffstat (limited to 'runtime/lua/vim/treesitter.lua')
-rw-r--r--runtime/lua/vim/treesitter.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/treesitter.lua b/runtime/lua/vim/treesitter.lua
index de52685220..ed7d31e1f7 100644
--- a/runtime/lua/vim/treesitter.lua
+++ b/runtime/lua/vim/treesitter.lua
@@ -447,6 +447,7 @@ end
---
--- Can also be shown with `:InspectTree`. [:InspectTree]()
---
+---@since 11
---@param opts table|nil Optional options table with the following possible keys:
--- - lang (string|nil): The language of the source buffer. If omitted, detect
--- from the filetype of the source buffer.
@@ -470,6 +471,7 @@ end
--- vim.wo.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
--- ```
---
+---@since 11
---@param lnum integer|nil Line number to calculate fold level for
---@return string
function M.foldexpr(lnum)