@@ -23,8 +23,14 @@ type LSPInfo struct {
23func (m *UI) lspInfo(width, maxItems int, isSection bool) string {
23func (m *UI) lspInfo(width, maxItems int, isSection bool) string {
24 var lsps []LSPInfo
24 var lsps []LSPInfo
25 t := m.com.Styles
25 t := m.com.Styles
26+ lspConfigs := m.com.Config().LSP.Sorted()
28+ for _, cfg := range lspConfigs {
29+ state, ok := m.lspStates[cfg.Name]
27− for _, state := range m.lspStates {
28 client, ok := m.com.App.LSPClients.Get(state.Name)
34 client, ok := m.com.App.LSPClients.Get(state.Name)
@@ -39,6 +45,7 @@ func (m *UI) lspInfo(width, maxItems int, isSection bool) string {
40 lsps = append(lsps, LSPInfo{LSPClientInfo: state, Diagnostics: lspErrs})
46 lsps = append(lsps, LSPInfo{LSPClientInfo: state, Diagnostics: lspErrs})
42 title := t.Subtle.Render("LSPs")
49 title := t.Subtle.Render("LSPs")
43 if isSection {
50 if isSection {
44 title = common.Section(t, title, width)
51 title = common.Section(t, title, width)