mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
test: forward $VIMRUNTIME in child nvim instances
This commit is contained in:
@@ -127,7 +127,13 @@ end
|
||||
local function setup_child_nvim(args, opts)
|
||||
opts = opts or {}
|
||||
local argv = { nvim_prog, unpack(args) }
|
||||
return screen_setup(0, argv, opts.cols, opts.env)
|
||||
|
||||
local env = opts.env or {}
|
||||
if not env.VIMRUNTIME then
|
||||
env.VIMRUNTIME = os.getenv('VIMRUNTIME')
|
||||
end
|
||||
|
||||
return screen_setup(0, argv, opts.cols, env)
|
||||
end
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user