perf: async enum file read #10

Merged
barrettruth merged 2 commits from perf/async-enum-read into main 2026-02-23 04:21:54 +00:00
barrettruth commented 2026-02-23 04:11:31 +00:00

Problem

parse_enums read the bash-completion file with blocking io.open/fd:read
on the main thread, stalling the Neovim event loop during completion
initialization.

Solution

Read the file via vim.uv.fs_open/fs_fstat/fs_read with callbacks, running
in parallel with the ghostty +show-config --docs system call using the same
remaining-counter convergence pattern as the other blink-cmp plugins.

## Problem `parse_enums` read the bash-completion file with blocking `io.open`/`fd:read` on the main thread, stalling the Neovim event loop during completion initialization. ## Solution Read the file via `vim.uv.fs_open`/`fs_fstat`/`fs_read` with callbacks, running in parallel with the `ghostty +show-config --docs` system call using the same remaining-counter convergence pattern as the other blink-cmp plugins.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/blink-cmp-ghostty!10
No description provided.