mirror of
https://github.com/neovim/neovim.git
synced 2025-09-21 10:48:18 +00:00

Keep track of the original indexes of both TAB and K_TAB, so that there doesn't have to be an extra table and loop for K_TAB.
19 lines
498 B
Lua
19 lines
498 B
Lua
local srcdir = table.remove(arg, 1)
|
|
local nlualib = table.remove(arg, 1)
|
|
local gendir = table.remove(arg, 1)
|
|
|
|
package.path = (srcdir .. '/src/?.lua;')
|
|
.. (srcdir .. '/runtime/lua/?.lua;')
|
|
.. (gendir .. '/?.lua;')
|
|
.. package.path
|
|
|
|
_G.vim = require 'vim.shared'
|
|
_G.vim.inspect = require 'vim.inspect'
|
|
_G.vim.iter = require 'vim.iter'
|
|
package.cpath = package.cpath .. ';' .. nlualib
|
|
require 'nlua0'
|
|
vim.NIL = vim.mpack.NIL -- WOW BOB WOW
|
|
|
|
arg[0] = table.remove(arg, 1)
|
|
return loadfile(arg[0])()
|