Skip to content

Commit 98575f0

Browse files
committed
feat: use faster shallow_copy for context
1 parent 15cb871 commit 98575f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/blink/cmp/sources/lib/context.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function sources_context:get_completions_for_group(sources_group_idx, sources_gr
6969
and vim.tbl_contains(source:get_trigger_characters(), context.trigger.character)
7070

7171
-- The TriggerForIncompleteCompletions kind is handled by the source itself
72-
local source_context = vim.fn.deepcopy(context)
72+
local source_context = require('blink.cmp.utils').shallow_copy(context)
7373
source_context.trigger = trigger_character
7474
and { kind = vim.lsp.protocol.CompletionTriggerKind.TriggerCharacter, character = context.trigger.character }
7575
or { kind = vim.lsp.protocol.CompletionTriggerKind.Invoked }

0 commit comments

Comments
 (0)