mirror of
https://github.com/neovim/neovim.git
synced 2026-05-07 08:50:26 -04:00
65b40e69ac
Problem:
- Not obvious which _meta/ are generated and which should be edited
manually.
- The require guard (`error('Cannot require a meta file')`) is not
consistently present in all meta files.
Solution:
- Update headers.
- Add require() guard to all meta files.
- Rename generated meta files with `.gen.lua`.
24 lines
600 B
Lua
24 lines
600 B
Lua
--- @meta
|
|
-- This file is NOT generated, edit it directly.
|
|
error('Cannot require a meta file')
|
|
|
|
-- 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
|