fix(blink): compat with 0.7.6

This commit is contained in:
Folke Lemaitre 2024-12-13 22:46:09 +01:00
parent 08a7f7e3f9
commit 63eab6d9a5
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -99,10 +99,13 @@ return {
end end
end end
-- TODO: remove when blink made a new release > 0.7.6 --- NOTE: compat with latest version. Currenlty 0.7.6
if not vim.g.lazyvim_blink_main then if not vim.g.lazyvim_blink_main then
opts.sources.completion = opts.sources.completion or {} opts.sources.completion = opts.sources.completion or {}
opts.sources.completion.enabled_providers = enabled opts.sources.completion.enabled_providers = enabled
if vim.tbl_get(opts, "completion", "menu", "draw", "treesitter") then
opts.completion.menu.draw.treesitter = true
end
end end
-- Unset custom prop to pass blink.cmp validation -- Unset custom prop to pass blink.cmp validation