test: forward $VIMRUNTIME in child nvim instances

This commit is contained in:
Gregory Anders
2023-12-07 09:28:46 -08:00
parent 5e78fd7784
commit 8957df4f22
6 changed files with 52 additions and 5 deletions

View File

@@ -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 {