Open
Description
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