diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-06-11 12:05:18 +0100 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-06-11 12:45:43 +0100 |
commit | 5e49ef0af3cb8dba658e5d0dc6a807f8edebf590 (patch) | |
tree | 4d819cee76851c0c3168cd6f12c7d5ea87a586be /runtime/doc | |
parent | d8e384b7bfd5829e5ff5006202faa584b3211e84 (diff) | |
download | rneovim-5e49ef0af3cb8dba658e5d0dc6a807f8edebf590.tar.gz rneovim-5e49ef0af3cb8dba658e5d0dc6a807f8edebf590.tar.bz2 rneovim-5e49ef0af3cb8dba658e5d0dc6a807f8edebf590.zip |
refactor(lua): improve type annotations
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/diagnostic.txt | 1 | ||||
-rw-r--r-- | runtime/doc/lua.txt | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt index 68dc9d6549..05af2eddc3 100644 --- a/runtime/doc/diagnostic.txt +++ b/runtime/doc/diagnostic.txt @@ -363,7 +363,6 @@ Lua module: vim.diagnostic *diagnostic-api* • {message} (`string`) The diagnostic text • {source}? (`string`) The source of the diagnostic • {code}? (`string|integer`) The diagnostic code - • {_tags}? (`{ deprecated: boolean, unnecessary: boolean}`) • {user_data}? (`any`) arbitrary data plugins can add • {namespace}? (`integer`) diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index e2fcac1bda..72babb067e 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -981,6 +981,9 @@ vim.str_byteindex({str}, {index}, {use_utf16}) *vim.str_byteindex()* • {index} (`integer`) • {use_utf16} (`boolean?`) + Return: ~ + (`integer`) + vim.str_utf_end({str}, {index}) *vim.str_utf_end()* Gets the distance (in bytes) from the last byte of the codepoint (character) that {index} points to. |