aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-09-09 18:47:03 +0200
committerGitHub <noreply@github.com>2021-09-09 18:47:03 +0200
commitd80aac3b2a3ce4b25d4f12ff64b8c947eaf75826 (patch)
treeb10dcaea8ee55a9f27b528360eb0dab50e165121 /runtime
parent13748512f6d6dfb5895c2233d2e07480e00eb753 (diff)
parentad8eda3f5b7db424de912ac748bce6b02e43f64f (diff)
downloadrneovim-d80aac3b2a3ce4b25d4f12ff64b8c947eaf75826.tar.gz
rneovim-d80aac3b2a3ce4b25d4f12ff64b8c947eaf75826.tar.bz2
rneovim-d80aac3b2a3ce4b25d4f12ff64b8c947eaf75826.zip
Merge pull request #15566 from bfredl/mpack
libs: vendor libmpack and libmpack-lua
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/lua.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index 5d600eae99..3fd3875557 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -687,6 +687,19 @@ vim.diff({a}, {b}, {opts}) *vim.diff()*
See {opts.result_type}. nil if {opts.on_hunk} is given.
------------------------------------------------------------------------------
+VIM.MPACK *lua-mpack*
+
+The *vim.mpack* module provides packing and unpacking of lua objects to
+msgpack encoded strings. |vim.NIL| and |vim.empty_dict()| are supported.
+
+vim.mpack.pack({obj}) *vim.mpack.pack*
+ Packs a lua object {obj} and returns the msgpack representation as
+ a string
+
+vim.mpack.unpack({str}) *vim.mpack.unpack*
+ Unpacks the msgpack encoded {str} and returns a lua object
+
+------------------------------------------------------------------------------
VIM *lua-builtin*
vim.api.{func}({...}) *vim.api*