Stop server before install

This commit is contained in:
Yasuhiro Matsumoto
2021-09-04 23:58:03 +09:00
parent ba18f109bf
commit 36bc5d94ee

View File

@@ -336,6 +336,7 @@ function! s:vim_lsp_install_server(ft, command, bang) abort
call lsp_settings#utils#error('Invalid server name')
return
endif
call lsp#stop_server(a:command)
let l:entry = s:vim_lsp_installer(a:ft, a:command)
if empty(l:entry)
call lsp_settings#utils#error('Server not found')