Skip to content

Commit 338d2a6

Browse files
authored
fix: check if source is in enabled_providers before calling source:enabled (#266)
1 parent 28fcf95 commit 338d2a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function sources.get_enabled_providers(context)
5959
--- @type table<string, blink.cmp.SourceProvider>
6060
local providers = {}
6161
for key, provider in pairs(sources.providers) do
62-
if provider:enabled(context) and vim.tbl_contains(mode_providers, key) then providers[key] = provider end
62+
if vim.tbl_contains(mode_providers, key) and provider:enabled(context) then providers[key] = provider end
6363
end
6464
return providers
6565
end

0 commit comments

Comments
 (0)