aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authortyru <tyru.exe@gmail.com>2020-01-01 11:18:28 +0900
committertyru <tyru.exe@gmail.com>2020-01-01 11:21:09 +0900
commite3792b02bcba10b2813291855e4a7d47c6d61e1c (patch)
tree77e1aa6dc8a411249dd7e97f3f9f6610cb2e5347 /plugin
parent80453d1f805244cee48a24917c6879fbf7152c15 (diff)
downloadvim-lsp-settings-e3792b02bcba10b2813291855e4a7d47c6d61e1c.tar.gz
vim-lsp-settings-e3792b02bcba10b2813291855e4a7d47c6d61e1c.tar.bz2
vim-lsp-settings-e3792b02bcba10b2813291855e4a7d47c6d61e1c.zip
fix exists(':Excmd') check
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