perf: async enum file read #10
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/blink-cmp-ghostty!10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "perf/async-enum-read"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
parse_enumsread the bash-completion file with blockingio.open/fd:readon the main thread, stalling the Neovim event loop during completion
initialization.
Solution
Read the file via
vim.uv.fs_open/fs_fstat/fs_readwith callbacks, runningin parallel with the
ghostty +show-config --docssystem call using the sameremaining-counter convergence pattern as the other blink-cmp plugins.