diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-07-18 12:24:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-18 12:24:53 +0100 |
commit | 9fcb0a64ee9195434113c10cb6e958cfe3b2c2cd (patch) | |
tree | 039c2b28116857111e885f84b64d55de97601e96 /runtime | |
parent | e4da418ba8388e94bb186e3f9a2004ee1e96f1e5 (diff) | |
download | rneovim-9fcb0a64ee9195434113c10cb6e958cfe3b2c2cd.tar.gz rneovim-9fcb0a64ee9195434113c10cb6e958cfe3b2c2cd.tar.bz2 rneovim-9fcb0a64ee9195434113c10cb6e958cfe3b2c2cd.zip |
refactor(lua2dox): overhaul (#24386)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/lua.txt | 8 | ||||
-rw-r--r-- | runtime/doc/treesitter.txt | 7 |
2 files changed, 8 insertions, 7 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index fd75fdb2dd..ac40d61e20 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -674,7 +674,7 @@ vim.regex:match_str({str}) *regex:match_str()* match is returned. When there is no match, `nil` is returned. As any integer is truth-y, `regex:match()` can be directly used as a condition in an if-statement. Parameters: ~ - • {str} (string) + • {str} (string) ============================================================================== @@ -1988,13 +1988,13 @@ vim.Ringbuf:peek() *Ringbuf:peek()* Returns the first unread item without removing it Return: ~ - any?|ni + any?|nil vim.Ringbuf:pop() *Ringbuf:pop()* Removes and returns the first unread item Return: ~ - any?|ni + any?|nil vim.Ringbuf:push({item}) *Ringbuf:push()* Adds an item, overriding the oldest item if the buffer is full. @@ -3044,7 +3044,7 @@ vim.version.last({versions}) *vim.version.last()* • {versions} Version [] Return: ~ - Version ?|ni + Version ?|nil vim.version.lt({v1}, {v2}) *vim.version.lt()* Returns `true` if `v1 < v2` . See |vim.version.cmp()| for usage. diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt index bb0d435f4a..1effc87500 100644 --- a/runtime/doc/treesitter.txt +++ b/runtime/doc/treesitter.txt @@ -1035,7 +1035,7 @@ set({lang}, {query_name}, {text}) *vim.treesitter.query.set()* Lua module: vim.treesitter.highlighter *lua-treesitter-highlighter* TSHighlighter:destroy() *TSHighlighter:destroy()* - Removes all internal references to the highlighter + Removes all internal references to the highlighter. ============================================================================== @@ -1100,7 +1100,8 @@ LanguageTree:destroy() *LanguageTree:destroy()* Any cleanup logic should be performed here. - Note: This DOES NOT remove this tree from a parent. Instead, `remove_child` must be called on the parent to remove it. + Note: This DOES NOT remove this tree from a parent. Instead, + `remove_child` must be called on the parent to remove it. *LanguageTree:for_each_child()* LanguageTree:for_each_child({fn}, {include_self}) @@ -1117,7 +1118,7 @@ LanguageTree:for_each_tree({fn}) *LanguageTree:for_each_tree()* Note: This includes the invoking tree's child trees as well. Parameters: ~ - • {fn} fun(tree: TSTree, ltree: LanguageTree) + • {fn} fun(tree: TSTree, ltree: LanguageTree) LanguageTree:included_regions() *LanguageTree:included_regions()* Gets the set of included regions |