fix(build): distinguish vim.mpack from global require'mpack'

problem: the api of vim.mpack is not compatible with a system provided mpack
solution: don't require 'mpack' directly from the system path
This commit is contained in:
bfredl
2023-04-20 14:41:47 +02:00
parent dbcd1985d1
commit ffaf74f147
9 changed files with 20 additions and 11 deletions

View File

@@ -4,6 +4,7 @@ package.path = srcdir .. '/src/nvim/?.lua;' ..srcdir .. '/runtime/lua/?.lua;' ..
_G.vim = require'vim.shared'
_G.vim.inspect = require 'vim.inspect'
package.cpath = package.cpath .. ';' .. nlualib
require 'nlua0'
arg[0] = table.remove(arg, 1)
return loadfile(arg[0])()