diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-09-09 18:47:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-09 18:47:03 +0200 |
commit | d80aac3b2a3ce4b25d4f12ff64b8c947eaf75826 (patch) | |
tree | b10dcaea8ee55a9f27b528360eb0dab50e165121 /runtime | |
parent | 13748512f6d6dfb5895c2233d2e07480e00eb753 (diff) | |
parent | ad8eda3f5b7db424de912ac748bce6b02e43f64f (diff) | |
download | rneovim-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.txt | 13 |
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* |