LspSuggestionBuilder typedef

LspSuggestionBuilder = Widget Function(BuildContext context, LspCompletion suggestion, bool isSelected)

Builds the content of an LSP completion suggestion row.

The builder receives the completion item and whether it is currently selected. Return the complete custom row content, including any icons, labels, and details you want to display. The surrounding editor still provides selection, hover, splash, and tap behavior.

Implementation

typedef LspSuggestionBuilder = Widget Function(
  BuildContext context,
  LspCompletion suggestion,
  bool isSelected,
);