Skip to content

Commit

Permalink
docs: add warning on prefetch_on_insert
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Dec 13, 2024
1 parent 54d1a98 commit ec9b71c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ MiniDeps.add({

trigger = {
-- When true, will prefetch the completion items when entering insert mode
-- WARN: buggy, not recommended unless you'd like to help develop prefetching
prefetch_on_insert = false,
-- When false, will not show the completion window automatically when in a snippet
show_in_snippet = true,
Expand Down
2 changes: 1 addition & 1 deletion lua/blink/cmp/config/completion/trigger.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- @class (exact) blink.cmp.CompletionTriggerConfig
--- @field prefetch_on_insert boolean When true, will prefetch the completion items when entering insert mode
--- @field prefetch_on_insert boolean When true, will prefetch the completion items when entering insert mode. WARN: buggy, not recommended unless you'd like to help develop prefetching
--- @field show_in_snippet boolean When false, will not show the completion window when in a snippet
--- @field show_on_keyword boolean When true, will show the completion window after typing a character that matches the `keyword.regex`
--- @field show_on_trigger_character boolean When true, will show the completion window after typing a trigger character
Expand Down

0 comments on commit ec9b71c

Please sign in to comment.