diff options
author | mattn <mattn.jp@gmail.com> | 2020-01-30 12:34:58 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-30 12:34:58 +0900 |
commit | 9a95bf72eca2c0da2585a7fb3b4361ba230e425f (patch) | |
tree | 0c3d3e87700172b666a6d8e968b1381eaeee8471 /autoload/lsp_settings.vim | |
parent | 29d56688f392d65db1f07851ae80e2516d56a3d1 (diff) | |
parent | a95b48fd4c275b64a153adf8455714228f733151 (diff) | |
download | vim-lsp-settings-9a95bf72eca2c0da2585a7fb3b4361ba230e425f.tar.gz vim-lsp-settings-9a95bf72eca2c0da2585a7fb3b4361ba230e425f.tar.bz2 vim-lsp-settings-9a95bf72eca2c0da2585a7fb3b4361ba230e425f.zip |
Merge pull request #127 from mattn/use-shell
Use shell
Diffstat (limited to 'autoload/lsp_settings.vim')
-rw-r--r-- | autoload/lsp_settings.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/autoload/lsp_settings.vim b/autoload/lsp_settings.vim index ab94968..3e4f875 100644 --- a/autoload/lsp_settings.vim +++ b/autoload/lsp_settings.vim @@ -277,7 +277,8 @@ function! s:vim_lsp_install_server(ft, command) abort split new call termopen(l:entry[1], {'cwd': l:server_install_dir, 'on_exit': function('s:vim_lsp_install_server_post', [l:entry[0]])}) | startinsert else - let l:bufnr = term_start(l:entry[1], {'cwd': l:server_install_dir}) + let l:args = has('win32') ? ['cmd', '/c', l:entry[1]] : ['bash', '-c', l:entry[1]] + let l:bufnr = term_start(l:args, {'cwd': l:server_install_dir}) let l:job = term_getjob(l:bufnr) if l:job != v:null call job_setoptions(l:job, {'exit_cb': function('s:vim_lsp_install_server_post', [l:entry[0]])}) |