From 004e826cdcdcb8edfd25d85662e3f5852452460c Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 26 Dec 2019 12:29:04 +0900 Subject: Define if not defined --- plugin/lsp_settings.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin') diff --git a/plugin/lsp_settings.vim b/plugin/lsp_settings.vim index 17fb370..7523949 100644 --- a/plugin/lsp_settings.vim +++ b/plugin/lsp_settings.vim @@ -109,8 +109,8 @@ function! s:vimlsp_settings_suggest() abort endif if !exists(':LspInstallServer') echomsg 'If you want to enable Language Server, please do :LspInstallServer' + command! -buffer LspInstallServer call s:vimlsp_install_server() endif - command! -buffer LspInstallServer call s:vimlsp_install_server() endfunction function! s:vimlsp_settings_get(name, key, default) abort @@ -167,7 +167,7 @@ function! s:vimlsp_setting() abort exe printf('autocmd FileType %s call s:vimlsp_settings_suggest()', l:ft) endif augroup END - else + elseif !exists(':LspInstallServer') command! -buffer LspInstallServer call s:vimlsp_install_server() endif endfor -- cgit v1.2.3-54-g00ecf