mirror of
https://github.com/neovim/neovim.git
synced 2026-03-28 03:12:00 +00:00
We define vim.mpack so that LuaLS doesn't emit undefined-field warnings when using it, annotated with @nodoc to skip doc generation.
22 lines
515 B
Lua
22 lines
515 B
Lua
--- @meta
|
|
|
|
-- luacheck: no unused args
|
|
|
|
---@nodoc
|
|
vim.mpack = {}
|
|
|
|
--- @brief
|
|
---
|
|
--- This module provides encoding and decoding of Lua objects to and
|
|
--- from msgpack-encoded strings. Supports |vim.NIL| and |vim.empty_dict()|.
|
|
|
|
--- Decodes (or "unpacks") the msgpack-encoded {str} to a Lua object.
|
|
--- @param str string
|
|
--- @return any
|
|
function vim.mpack.decode(str) end
|
|
|
|
--- Encodes (or "packs") Lua object {obj} as msgpack in a Lua string.
|
|
--- @param obj any
|
|
--- @return string
|
|
function vim.mpack.encode(obj) end
|