Skip to content

Completions prefetching #706

Open
Open
@Saghen

Description

@Saghen

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.|)
  • After typing , (for function arguments)
  • After pressing some trigger characters ((, [, etc) regardless of source's trigger characters, by language
  • Other ideas?

CC @stefanboca

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or requestsourcesSpecific source provider or the system as a whole

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions