-
-
Save Quramy/fe8de372c9b6534ee12b80d7df258e82 to your computer and use it in GitHub Desktop.
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment