1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:00:04 +08:00

fix(job): make job api support env option

This commit is contained in:
wsdjeg 2022-04-25 12:58:25 +08:00
parent e4c3fa7210
commit 44e2c86da9
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
[vader-test]
command = "make"
args = ['test']
isBackground = false
[vader-test.options.env]
VIM_BIN = 'nvim'
[generate-vim-doc]
command = "python"
args = ['-m', 'vimdoc', '.']

View File

@ -159,6 +159,9 @@ function! s:self.warp_nvim(argv, opts) abort dict
if has_key(a:opts, 'cwd')
call extend(obj.opts, {'cwd' : a:opts.cwd})
endif
if has_key(a:opts, 'env')
call extend(obj.opts, {'env' : a:opts.env})
endif
return obj
endfunction