File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -596,11 +596,21 @@ function! LanguageClient#binaryPath() abort
596
596
return l: path . l: filename
597
597
endfunction
598
598
599
+ function ! LanguageClient#installBinaries ()
600
+ let l: installsh = ' cd ' . s: root . ' && ./install.sh'
601
+ let l: output = split (system (l: installsh ), ' \n' )
602
+ for l: line in l: output
603
+ echomsg l: line
604
+ endfor
605
+ echomsg " Success."
606
+ endfunction
607
+
599
608
function ! s: Launch () abort
600
609
let l: binpath = LanguageClient#binaryPath ()
601
610
602
611
if executable (l: binpath ) != 1
603
- call s: Echoerr (' LanguageClient: binary (' . l: binpath . ' ) doesn'' t exists! Please check installation guide.' )
612
+ call s: Echoerr (' LanguageClient: binary (' . l: binpath . ' ) doesn'' t exists!' )
613
+ call s: Echoerr (' Run :LanguageClientInstallBinaries or check installation guide.' )
604
614
return 0
605
615
endif
606
616
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ name=languageclient
11
11
12
12
try_curl () {
13
13
command -v curl > /dev/null && \
14
- curl --fail --location " $1 " --output bin/$name
14
+ curl --fail --silent --show-error -- location " $1 " --output bin/$name
15
15
}
16
16
17
17
try_wget () {
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ endfunction
112
112
113
113
command ! -nargs =* LanguageClientStart :call LanguageClient#startServer (<f-args> )
114
114
command ! LanguageClientStop :call LanguageClient#exit ()
115
+ command ! LanguageClientInstallBinaries :call LanguageClient#installBinaries ()
115
116
116
117
augroup languageClient
117
118
autocmd !
You can’t perform that action at this time.
0 commit comments