mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
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
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user