Skip to content

Commit 407f2d5

Browse files
committed
fix: snippet reload function
1 parent 1a55fd1 commit 407f2d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/blink/cmp/sources/lib/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ end
217217

218218
--- For external integrations to force reloading the source
219219
function sources.reload()
220-
for _, source in ipairs(sources.providers) do
220+
for _, source in pairs(sources.providers) do
221221
source:reload()
222222
end
223223
end

lua/blink/cmp/sources/lib/provider/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
--- @field resolve fun(self: blink.cmp.SourceProvider, item: blink.cmp.CompletionItem): blink.cmp.Task
1414
--- @field get_signature_help_trigger_characters fun(self: blink.cmp.SourceProvider): string[]
1515
--- @field get_signature_help fun(self: blink.cmp.SourceProvider, context: blink.cmp.SignatureHelpContext): blink.cmp.Task
16-
--- @field reload (fun(self: blink.cmp.Source): nil) | nil
16+
--- @field reload (fun(self: blink.cmp.SourceProvider): nil) | nil
1717

1818
--- @type blink.cmp.SourceProvider
1919
--- @diagnostic disable-next-line: missing-fields

0 commit comments

Comments
 (0)