This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! vim_typings#install(...) | |
let type_file_list = map(range(1, a:{0}), 'a:{v:val}') | |
let stdouts = systemlist('typings install '.join(type_file_list, ' ').' --save') | |
if v:shell_error | |
let stdouts = systemlist('typings install '.join(type_file_list, ' ').' --ambient --save') | |
endif | |
echom join(stdouts, ', ') | |
endfunction |