aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/lsp_settings.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/lsp_settings.vim b/plugin/lsp_settings.vim
index ea95bb9..1081bf5 100644
--- a/plugin/lsp_settings.vim
+++ b/plugin/lsp_settings.vim
@@ -115,7 +115,7 @@ function! s:vimlsp_settings_suggest() abort
if empty(s:vimlsp_installer())
return
endif
- if !exists(':LspInstallServer')
+ if exists(':LspInstallServer') !=# 2
redraw
echohl Directory
echomsg 'If you want to enable Language Server, please do :LspInstallServer'
@@ -186,12 +186,12 @@ function! s:vimlsp_load_or_suggest(ft) abort
call s:vimlsp_settings_suggest()
else
doautocmd User lsp_setup
- if !exists(':LspInstallServer')
+ if exists(':LspInstallServer') !=# 2
command! -buffer LspInstallServer call s:vimlsp_install_server()
endif
endif
- if !exists(':LspRegisterServer')
+ if exists(':LspRegisterServer') !=# 2
delcommand LspRegisterServer
endif
endfunction