robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Justin M. KeyesMerge #36870 from justinmk/luacore10b610bbd9

master
504 B18 linesraw
1local srcdir = table.remove(arg, 1)
2local nlualib = table.remove(arg, 1)
3local gendir = table.remove(arg, 1)
4
5package.path = (srcdir .. '/src/?.lua;')
6  .. (srcdir .. '/runtime/lua/?.lua;')
7  .. (gendir .. '/?.lua;')
8  .. package.path
9
10_G.vim = require 'vim._core.shared'
11_G.vim.inspect = require 'vim.inspect'
12_G.vim.iter = require 'vim.iter'
13package.cpath = package.cpath .. ';' .. nlualib
14require 'nlua0'
15vim.NIL = vim.mpack.NIL -- WOW BOB WOW
16
17arg[0] = table.remove(arg, 1)
18return loadfile(arg[0])()