diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-04-20 19:23:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-20 19:23:44 +0200 |
commit | 230e567a051985fe09febaa09e3a3abc5b919d3d (patch) | |
tree | 1d17b88e18c6ab14c1536a895991f880181ec48d /src/nlua0.c | |
parent | ab2811746eb72e06309a9877dbe6cb70d9cd3b12 (diff) | |
parent | ffaf74f1477d3182ffc70bcc9913effc44c90ea7 (diff) | |
download | rneovim-230e567a051985fe09febaa09e3a3abc5b919d3d.tar.gz rneovim-230e567a051985fe09febaa09e3a3abc5b919d3d.tar.bz2 rneovim-230e567a051985fe09febaa09e3a3abc5b919d3d.zip |
Merge pull request #23218 from bfredl/nlua0boogalo
fix(build): distinguish vim.mpack from global require'mpack'
Diffstat (limited to 'src/nlua0.c')
-rw-r--r-- | src/nlua0.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nlua0.c b/src/nlua0.c new file mode 100644 index 0000000000..af811df324 --- /dev/null +++ b/src/nlua0.c @@ -0,0 +1,13 @@ +#include <lua.h> + +#include "mpack/lmpack.h" + +LUA_API int luaopen_nlua0(lua_State* L); + +LUA_API int luaopen_nlua0(lua_State* L) { + lua_getglobal(L, "vim"); + luaopen_mpack(L); + lua_setfield(L, -2, "mpack"); + + return 1; +} |