mirror of
https://github.com/neovim/neovim.git
synced 2026-03-16 13:57:25 +00:00
problem: the api of vim.mpack is not compatible with a system provided mpack solution: don't require 'mpack' directly from the system path
14 lines
223 B
C
14 lines
223 B
C
#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;
|
|
}
|