From 4f1f0a36c564424c0feb104e95bd47e539839f77 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 29 Jan 2020 19:31:44 +0900 Subject: Add pyls-ms --- plugin/lsp_settings.vim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'plugin') diff --git a/plugin/lsp_settings.vim b/plugin/lsp_settings.vim index 9c70970..5b2c351 100644 --- a/plugin/lsp_settings.vim +++ b/plugin/lsp_settings.vim @@ -169,13 +169,14 @@ function! s:vim_lsp_install_server(ft, command) abort endfunction function! s:vim_lsp_settings_suggest(ft) abort - if empty(s:vim_lsp_installer(a:ft)) + let l:entry = empty(s:vim_lsp_installer(a:ft)) + if empty(l:entry) return endif if exists(':LspInstallServer') !=# 2 - redraw + redraw! echohl Directory - echomsg 'Please do :LspInstallServer to enable Language Server' + echomsg 'Please do :LspInstallServer to enable Language Server ' . l:entry[0] echohl None command! -nargs=? -buffer -complete=customlist,lsp_settings#complete_install LspInstallServer call s:vim_lsp_install_server(&l:filetype, ) endif @@ -210,6 +211,7 @@ function! s:vim_lsp_settings() abort augroup vim_lsp_suggest autocmd! autocmd BufNewFile,BufRead * call s:vim_lsp_suggest_plugin() + autocmd VimEnter * call s:vim_lsp_load_or_suggest('_') augroup END command! -nargs=? -complete=customlist,lsp_settings#complete_uninstall LspUninstallServer call s:vim_lsp_uninstall_server() endfunction @@ -314,4 +316,3 @@ function! s:load_or_suggest_group_name(ft) abort endfunction call s:vim_lsp_settings() -call s:vim_lsp_load_or_suggest('_') -- cgit v1.2.3-54-g00ecf