mirror of
https://github.com/neovim/neovim.git
synced 2026-02-22 02:11:33 +10: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
11 lines
357 B
Lua
11 lines
357 B
Lua
local srcdir = table.remove(arg, 1)
|
|
local nlualib = table.remove(arg, 1)
|
|
package.path = srcdir .. '/src/nvim/?.lua;' ..srcdir .. '/runtime/lua/?.lua;' .. package.path
|
|
_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])()
|