nova_editor library
Nova's code editing surface.
Built directly on re_editor: one document model
(CodeLineEditingController), with folding, gutter painting, completion
presentation and input policy owned here instead of in a wrapper package.
Classes
- NovaChunkAnalyzer
- Folds code blocks for the languages Nova edits.
- NovaCompletionPopup
- The completion list Nova shows above the caret.
- NovaDiagnostic
- One diagnostic reported by an analysis server.
- NovaEditor
- Nova's code editing surface.
- NovaEditorTheme
- Colours and text styles the editor surface paints with.
- NovaFindPanel
- The in-editor find bar.
- NovaGutterStyle
- How much room the gutter takes and what it shows.
- NovaImeController
-
Presents the document to
re_editoras "not composing". - NovaLivePromptsBuilder
- Wraps an app-supplied prompts builder so asynchronous results have a target.
Enums
- NovaDiagnosticSeverity
- A problem marker shown in the gutter next to a line.
- NovaFoldingStyle
- How NovaChunkAnalyzer decides where a foldable block starts and ends.
Constants
- kMaxSignatureDetailLength → const int
- Longest rendered signature hint, so a wide parameter list cannot push the detail line past the popup's edge.
Functions
-
novaFoldingStyleFor(
String? languageId) → NovaFoldingStyle -
The folding style that suits
languageId. -
novaSignatureDetailFor(
CodeFunctionPrompt prompt, {int maxLength = kMaxSignatureDetailLength}) → String -
A function prompt's parameter list and return type:
(a: int) → int.