aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/shared.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-03-07 11:01:50 +0100
committerGitHub <noreply@github.com>2022-03-07 11:01:50 +0100
commitc3cc17f0e61d70436c601444298fceeafbfbacb3 (patch)
tree2c76e5a9cdc0f76f4462c9ef56fe7a20af1c27db /runtime/lua/vim/shared.lua
parent5f3fff62a8d6b7a9e1b693f4e4a99e3c2d90789c (diff)
parentf39a12d629500bdbacb389ed593adac34d058fcb (diff)
downloadrneovim-c3cc17f0e61d70436c601444298fceeafbfbacb3.tar.gz
rneovim-c3cc17f0e61d70436c601444298fceeafbfbacb3.tar.bz2
rneovim-c3cc17f0e61d70436c601444298fceeafbfbacb3.zip
Merge pull request #17621 from bfredl/luaindex
refactor(lua): make vim submodule lazy loading declarative
Diffstat (limited to 'runtime/lua/vim/shared.lua')
-rw-r--r--runtime/lua/vim/shared.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/runtime/lua/vim/shared.lua b/runtime/lua/vim/shared.lua
index 48d0bd3672..8124b23eb1 100644
--- a/runtime/lua/vim/shared.lua
+++ b/runtime/lua/vim/shared.lua
@@ -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 {}