aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-26 12:29:04 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-26 12:29:04 +0900
commit004e826cdcdcb8edfd25d85662e3f5852452460c (patch)
treee3ba046deda288698b0f861c7dee712b8e2f328f /plugin
parent7753414b20aa8473426c4a51f1be647074f0bae8 (diff)
downloadvim-lsp-settings-004e826cdcdcb8edfd25d85662e3f5852452460c.tar.gz
vim-lsp-settings-004e826cdcdcb8edfd25d85662e3f5852452460c.tar.bz2
vim-lsp-settings-004e826cdcdcb8edfd25d85662e3f5852452460c.zip
Define if not defined
Diffstat (limited to 'plugin')
-rw-r--r--plugin/lsp_settings.vim4
1 files changed, 2 insertions, 2 deletions
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