aboutsummaryrefslogtreecommitdiff
path: root/src/gen/nvim_version.lua.in
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2025-02-26 11:38:07 +0000
committerLewis Russell <me@lewisr.dev>2025-02-26 16:54:37 +0000
commit0f24b0826a27b7868a3aacc25199787e7453d4cc (patch)
tree49585aac252581a735577f2e5711201a85ab8a7e /src/gen/nvim_version.lua.in
parent85caaa70d44b7b18c633aa0b140de5f3f6d3eee7 (diff)
downloadrneovim-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/gen/nvim_version.lua.in')
-rw-r--r--src/gen/nvim_version.lua.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gen/nvim_version.lua.in b/src/gen/nvim_version.lua.in
new file mode 100644
index 0000000000..c29141fc68
--- /dev/null
+++ b/src/gen/nvim_version.lua.in
@@ -0,0 +1,9 @@
+return {
+ {"major", ${NVIM_VERSION_MAJOR}},
+ {"minor", ${NVIM_VERSION_MINOR}},
+ {"patch", ${NVIM_VERSION_PATCH}},
+ {"prerelease", "${NVIM_VERSION_PRERELEASE}" ~= ""},
+ {"api_level", ${NVIM_API_LEVEL}},
+ {"api_compatible", ${NVIM_API_LEVEL_COMPAT}},
+ {"api_prerelease", ${NVIM_API_PRERELEASE}},
+}