aboutsummaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2020-02-24 21:07:56 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2020-02-24 21:07:56 +0900
commitb7afc25d2669b44766bdf03037f0202d4e007132 (patch)
treeaff284588fd0a116482e0890dcb80332fd37522a /autoload
parentc062e33e48161468d4df60696fa43dae0dfabce7 (diff)
downloadvim-lsp-settings-b7afc25d2669b44766bdf03037f0202d4e007132.tar.gz
vim-lsp-settings-b7afc25d2669b44766bdf03037f0202d4e007132.tar.bz2
vim-lsp-settings-b7afc25d2669b44766bdf03037f0202d4e007132.zip
Show configuration with LspSettingsStatus
Diffstat (limited to 'autoload')
-rw-r--r--autoload/lsp_settings/profile.vim14
1 files changed, 4 insertions, 10 deletions
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