From b7afc25d2669b44766bdf03037f0202d4e007132 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Mon, 24 Feb 2020 21:07:56 +0900 Subject: Show configuration with LspSettingsStatus --- autoload/lsp_settings/profile.vim | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'autoload') diff --git a/autoload/lsp_settings/profile.vim b/autoload/lsp_settings/profile.vim index 771eef0..8269b45 100644 --- a/autoload/lsp_settings/profile.vim +++ b/autoload/lsp_settings/profile.vim @@ -64,16 +64,10 @@ function! lsp_settings#profile#status() abort exec 'echohl' s:color_map[l:status] echon l:status echohl None - elseif lsp_settings#executable(l:server) - echon l:server . ': ' - echohl vimFilter - echon 'not running' - echohl None - else - echon l:server . ': ' - echohl vimOption - echon 'not installed' - echohl None + let l:server_info = lsp#get_server_info(l:server) + for [l:k, l:V] in items(l:server_info) + echo printf(' %s: %s', l:k, string(l:V)) + endfor endif echo '' endfor -- cgit v1.2.3-54-g00ecf