From 2b5a33e476ae3c6b5c6345777d20792786836dda Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Sat, 19 Apr 2025 15:15:29 +0200 Subject: lsp improvements --- internal/tui/components/core/status.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'internal/tui/components/core') diff --git a/internal/tui/components/core/status.go b/internal/tui/components/core/status.go index 01c535869..5a2114e83 100644 --- a/internal/tui/components/core/status.go +++ b/internal/tui/components/core/status.go @@ -138,6 +138,23 @@ func (m statusCmp) View() string { } func (m *statusCmp) projectDiagnostics() string { + // Check if any LSP server is still initializing + initializing := false + for _, client := range m.lspClients { + if client.GetServerState() == lsp.StateStarting { + initializing = true + break + } + } + + // If any server is initializing, show that status + if initializing { + return lipgloss.NewStyle(). + Background(styles.BackgroundDarker). + Foreground(styles.Peach). + Render(fmt.Sprintf("%s Initializing LSP...", styles.SpinnerIcon)) + } + errorDiagnostics := []protocol.Diagnostic{} warnDiagnostics := []protocol.Diagnostic{} hintDiagnostics := []protocol.Diagnostic{} -- cgit v1.2.3