mirror of
https://github.com/neovim/neovim.git
synced 2026-02-19 09:58:32 +00:00
- Move all generator Lua scripts to the `src/gen/`
- Add a `.luarc.json` to `src/gen/`
- Add a `preload.lua` to `src/gen/`
- Add `src` to `package.path` so it aligns with `.luarc.json'
- Fix all `require` statements in `src/gen/` so they are consistent:
- `require('scripts.foo')` -> `require('gen.foo')`
- `require('src.nvim.options')` -> `require('nvim.options')`
- `require('api.dispatch_deprecated')` -> `require('nvim.api.dispatch_deprecated')`
7 lines
188 B
Lua
7 lines
188 B
Lua
local srcdir = table.remove(arg, 1)
|
|
|
|
package.path = (srcdir .. '/src/?.lua;') .. (srcdir .. '/runtime/lua/?.lua;') .. package.path
|
|
|
|
arg[0] = table.remove(arg, 1)
|
|
return loadfile(arg[0])()
|