aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-29 19:31:44 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-29 19:31:44 +0900
commit4f1f0a36c564424c0feb104e95bd47e539839f77 (patch)
treeb439373d756ca4b6c38aec8086fc89a3dd87a244 /plugin
parent54b401800bd2322bb40151cd63269ad3a39ebb35 (diff)
downloadvim-lsp-settings-4f1f0a36c564424c0feb104e95bd47e539839f77.tar.gz
vim-lsp-settings-4f1f0a36c564424c0feb104e95bd47e539839f77.tar.bz2
vim-lsp-settings-4f1f0a36c564424c0feb104e95bd47e539839f77.zip
Add pyls-ms
Diffstat (limited to 'plugin')
-rw-r--r--plugin/lsp_settings.vim9
1 files changed, 5 insertions, 4 deletions
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, <q-args>)
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(<q-args>)
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('_')