Skip to content

Commit 4e9edba

Browse files
committed
fix: use table.concat instead of vim.fn.join for provider list
The assert was joining providers with `vim.fn.join`, which calls into Vimscript and can fail in fast event contexts (e.g. during async completion). Replaces it with Lua's built-in `table.concat`, removing the unnecessary Vimscript bridge call and thus potential errors.
1 parent 7d6674d commit 4e9edba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function sources.get_provider_by_id(provider_id)
125125
'Requested provider "'
126126
.. provider_id
127127
.. '" has not been configured. Available providers: '
128-
.. vim.fn.join(vim.tbl_keys(sources.providers), ', ')
128+
.. table.concat(vim.tbl_keys(sources.providers), ', ')
129129
)
130130

131131
-- initialize the provider if it hasn't been initialized yet

0 commit comments

Comments
 (0)