mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
refactor(lua): make vim submodule lazy loading declarative
This will allow us to also use the same logic for lua threads and processes, later.
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
-- Functions shared by Nvim and its test-suite.
|
||||
--
|
||||
-- The singular purpose of this module is to share code with the Nvim
|
||||
-- test-suite. If, in the future, Nvim itself is used to run the test-suite
|
||||
-- instead of "vanilla Lua", these functions could move to runtime/lua/vim/_editor.lua
|
||||
-- These are "pure" lua functions not depending of the state of the editor.
|
||||
-- Thus they should always be available whenever nvim-related lua code is run,
|
||||
-- regardless if it is code in the editor itself, or in worker threads/processes,
|
||||
-- or the test suite. (Eventually the test suite will be run in a worker process,
|
||||
-- so this wouldn't be a separate case to consider)
|
||||
|
||||
local vim = vim or {}
|
||||
|
||||
|
Reference in New Issue
Block a user