diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2025-02-26 11:38:07 +0000 |
|---|---|---|
| committer | Lewis Russell <me@lewisr.dev> | 2025-02-26 16:54:37 +0000 |
| commit | 0f24b0826a27b7868a3aacc25199787e7453d4cc (patch) | |
| tree | 49585aac252581a735577f2e5711201a85ab8a7e /src/nvim/generators/preload.lua | |
| parent | 85caaa70d44b7b18c633aa0b140de5f3f6d3eee7 (diff) | |
| download | rneovim-0f24b0826a27b7868a3aacc25199787e7453d4cc.tar.gz rneovim-0f24b0826a27b7868a3aacc25199787e7453d4cc.tar.bz2 rneovim-0f24b0826a27b7868a3aacc25199787e7453d4cc.zip | |
build: move all generator scripts to `src/gen/`
- 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')`
Diffstat (limited to 'src/nvim/generators/preload.lua')
| -rw-r--r-- | src/nvim/generators/preload.lua | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/nvim/generators/preload.lua b/src/nvim/generators/preload.lua deleted file mode 100644 index e14671074c..0000000000 --- a/src/nvim/generators/preload.lua +++ /dev/null @@ -1,13 +0,0 @@ -local srcdir = table.remove(arg, 1) -local nlualib = table.remove(arg, 1) -local gendir = table.remove(arg, 1) -package.path = srcdir .. '/src/nvim/?.lua;' .. srcdir .. '/runtime/lua/?.lua;' .. package.path -package.path = gendir .. '/?.lua;' .. package.path -_G.vim = require 'vim.shared' -_G.vim.inspect = require 'vim.inspect' -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])() |