mirror of
https://github.com/neovim/neovim.git
synced 2026-07-21 16:41:38 +00:00
build: ship "_core/*" as bytecode (built-into Nvim binary)
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/`
This commit is contained in:
2
.github/scripts/labeler_configuration.yml
vendored
2
.github/scripts/labeler_configuration.yml
vendored
@@ -24,7 +24,7 @@ comment:
|
||||
|
||||
defaults:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: [ runtime/lua/vim/_defaults.lua ]
|
||||
- any-glob-to-any-file: [ runtime/lua/vim/_core/defaults.lua ]
|
||||
|
||||
diagnostic:
|
||||
- changed-files:
|
||||
|
||||
Reference in New Issue
Block a user