Expand description
LspManager — lazily starts and manages LSP clients per file extension.
Provides a unified interface for diagnostics, file notifications, and lifecycle management across multiple language servers.
Structs§
- LspManager
- Manages lifecycle of multiple language server clients.
Enums§
- LspConnect
Event - Status events emitted by
LspManagerwhen servers start, fail, or hit non-fatal trouble. Mirrorsmcp::McpConnectEventso the TUI event loop can render them as scrollback lines instead of having the manager write directly to stderr (which leaks into the input box while the renderer owns the screen — seelsp/mod.rsfor the full plumbing rationale).
Functions§
- build_
lsp_ manager - Build an LspManager from config, providing a unified entry point for CLI and daemon.
Returns
Noneif LSP is disabled in config. - build_
lsp_ manager_ with_ events - Build an LspManager paired with a receiver for connection-status
events. TUI mode wires the receiver into the event loop so server
start/failure surfaces as
✓ LSP server …/✗ LSP server …scrollback lines, matching the MCP server flow. ReturnsNonewhen LSP is disabled in config.