Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completions prefetching #706

Open
1 of 5 tasks
Saghen opened this issue Dec 21, 2024 · 1 comment
Open
1 of 5 tasks

Completions prefetching #706

Saghen opened this issue Dec 21, 2024 · 1 comment
Labels
feature New feature or request sources Specific source provider or the system as a whole

Comments

@Saghen
Copy link
Owner

Saghen commented Dec 21, 2024

Feature Description

Prefetching can reduce latency to 0ms, removing the final bottleneck for blink.cmp's latency, the LSP itself!

With #697 merged, we now have a reliable way to pass the source of a completion request upstream, meaning completion.trigger.prefetch_on_insert = true seems to work reliably. Some ideas of when to prefetch:

  • InsertEnter
  • CursorHold? Only in insert mode?
  • After pressing c in normal mode?
  • After deleting characters onto a trigger character (a.b| -> a.|)
  • Other ideas?

CC @stefanboca

@Saghen Saghen added feature New feature or request sources Specific source provider or the system as a whole labels Dec 21, 2024
@stefanboca
Copy link
Collaborator

stefanboca commented Dec 23, 2024

Possibly on CmdlineEnter or CmdwinEnter for cmdline prefetching? #305 and #665 should also probably allow prefetching somehow, although I'm not sure if that's already handled by InsertEnter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request sources Specific source provider or the system as a whole
Projects
None yet
Development

No branches or pull requests

2 participants