mirror of
https://github.com/neovim/neovim.git
synced 2026-01-02 17:36:56 +10:00
Problem: We want to encourage implementing core features in Lua instead of C, but it's clumsy because: - Core Lua code (built into `nvim` so it is available even if VIMRUNTIME is missing/invalid) requires manually updating CMakeLists.txt, or stuffing it into `_editor.lua`. - Core Lua modules are not organized similar to C modules, `_editor.lua` is getting too big. Solution: - Introduce `_core/` where core Lua code can live. All Lua modules added there will automatically be included as bytecode in the `nvim` binary. - Move these core modules into `_core/*`: ``` _defaults.lua _editor.lua _options.lua _system.lua shared.lua ``` TODO: - Move `_extui/ => _core/ui2/`
4 lines
190 B
Zig
4 lines
190 B
Zig
pub const inspect_module = @embedFile("./lua/vim/inspect.lua");
|
|
pub const shared_module = @embedFile("./lua/vim/_core/shared.lua");
|
|
pub const iter_module = @embedFile("./lua/vim/iter.lua");
|