fix(blink): add backward compat for config

This commit is contained in:
Folke Lemaitre
2024-12-13 21:08:45 +01:00
parent 4488cb24f7
commit 1517ec9bb4

View File

@ -99,6 +99,12 @@ return {
end
end
-- TODO: remove when blink made a new release > 0.7.6
if not vim.g.lazyvim_blink_main then
opts.sources.completion = opts.sources.completion or {}
opts.sources.completion.enabled_providers = enabled
end
-- Unset custom prop to pass blink.cmp validation
opts.sources.compat = nil