aboutsummaryrefslogtreecommitdiff
path: root/plugin/lsp_settings.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/lsp_settings.vim')
-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 9c1985d..17fb370 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
- elseif !empty(s:vimlsp_installer())
+ else
command! -buffer LspInstallServer call s:vimlsp_install_server()
endif
endfor