From e3792b02bcba10b2813291855e4a7d47c6d61e1c Mon Sep 17 00:00:00 2001 From: tyru <tyru.exe@gmail.com> Date: Wed, 1 Jan 2020 11:18:28 +0900 Subject: fix exists(':Excmd') check --- plugin/lsp_settings.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugin') 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 -- cgit v1.2.3-54-g00ecf