diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-01-09 17:36:46 +0000 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-01-11 16:24:12 +0000 |
commit | 2f9ee9b6cfc61a0504fc0bc22bdf481828e2ea91 (patch) | |
tree | 06884cc40b3f6e7c0dd47f4018c8ba0f671ba610 /runtime/lua/vim/lsp/util.lua | |
parent | a767c046f4e6bff1412269d56a8edfe33857d954 (diff) | |
download | rneovim-2f9ee9b6cfc61a0504fc0bc22bdf481828e2ea91.tar.gz rneovim-2f9ee9b6cfc61a0504fc0bc22bdf481828e2ea91.tar.bz2 rneovim-2f9ee9b6cfc61a0504fc0bc22bdf481828e2ea91.zip |
fix(doc): improve doc generation of types using lpeg
Added a lpeg grammar for LuaCATS and use it in lua2dox.lua
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r-- | runtime/lua/vim/lsp/util.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index 44465f6cff..a2cc81781a 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -790,7 +790,7 @@ end --- Note that if the input is of type `MarkupContent` and its kind is `plaintext`, --- then the corresponding value is returned without further modifications. --- ----@param input (`MarkedString` | `MarkedString[]` | `MarkupContent`) +---@param input (lsp.MarkedString | lsp.MarkedString[] | lsp.MarkupContent) ---@param contents (table|nil) List of strings to extend with converted lines. Defaults to {}. ---@return string[] extended with lines of converted markdown. ---@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_hover @@ -2115,8 +2115,8 @@ end --- Returns the UTF-32 and UTF-16 offsets for a position in a certain buffer. --- ---@param buf integer buffer number (0 for current) ----@param row 0-indexed line ----@param col 0-indexed byte offset in line +---@param row integer 0-indexed line +---@param col integer 0-indexed byte offset in line ---@param offset_encoding string utf-8|utf-16|utf-32 defaults to `offset_encoding` of first client of `buf` ---@return integer `offset_encoding` index of the character in line {row} column {col} in buffer {buf} function M.character_offset(buf, row, col, offset_encoding) |