mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
Check result 1 for confirm
This commit is contained in:
@@ -313,7 +313,7 @@ function! s:vim_lsp_install_server(ft, command, bang) abort
|
||||
call lsp_settings#utils#error('Server not found')
|
||||
return
|
||||
endif
|
||||
if empty(a:bang) && confirm(printf('Install %s ?', l:entry[0]), "&Yes\n&Cancel") ==# 2
|
||||
if empty(a:bang) && confirm(printf('Install %s ?', l:entry[0]), "&Yes\n&Cancel") !=# 1
|
||||
return
|
||||
endif
|
||||
let l:server_install_dir = lsp_settings#servers_dir() . '/' . l:entry[0]
|
||||
|
||||
Reference in New Issue
Block a user