Expand description
Status line (diagnostics summary). Statusline drawing helpers with diagnostics and Git change aggregation.
StructsΒ§
- Cached
GitStats π - Cached Git statistics keyed by the active buffer and repository discovery path.
- Diagnostic
- Diagnostic emitted by Nvim for statusline aggregation.
- GitLine
Stats π - Added and removed tracked lines for one status-line scope.
- GitStats π
- Git line statistics for the whole repository and the active buffer.
- Severity
Buckets π - Fixed-size aggregation of counts per
DiagnosticSeverity. - Statusline π
- Represents the status line with buffer path, diagnostics, and Git statistics.
ConstantsΒ§
- CACHED_
BUFFER_ πPATH - Cached
(buffer_handle, relative_path)to avoid recomputing the buffer path on everyCursorMovedevent. Automatically invalidated when the active buffer handle changes (e.g. onBufEnter). - CACHED_
GIT_ πSTATS - Cached Git statistics for the active buffer or current working directory.
- DRAW_
TRIGGERS π - GIT_
ADDED_ πHIGHLIGHT - GIT_
REMOVED_ πHIGHLIGHT
FunctionsΒ§
- dict
- [
Dictionary] exposing statusline draw helpers. - draw π
- Draws the status line with diagnostic and Git change information.
- get_
current_ πworking_ directory - Retrieves Neovimβs current working directory for Git discovery without a named buffer.
- get_
git_ πstats - Retrieves Git statistics for the active buffer, or the current working directory when unnamed.
- invalidate_
git_ πstats - Invalidates cached Git statistics so the next draw reads the repository again.
- write_
diagnostics π - Writes the diagnostic count directly to the target string, avoiding intermediate allocation.