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:
parent
e4c3fa7210
commit
44e2c86da9
@ -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', '.']
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user