mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
Stop server before install
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user