fix: blink doesn't use a boolean anymore for treesitter setting

This commit is contained in:
Igor Guerrero 2024-12-20 10:58:19 -06:00
parent c1ee761dd8
commit 0b786a6444
No known key found for this signature in database
GPG key ID: 9B6A448FD16FE5A9

View file

@ -118,17 +118,6 @@ return {
end
end
--- NOTE: compat with latest version. Currenlty 0.7.6
if not vim.g.lazyvim_blink_main then
---@diagnostic disable-next-line: inject-field
opts.sources.completion = opts.sources.completion or {}
opts.sources.completion.enabled_providers = enabled
if vim.tbl_get(opts, "completion", "menu", "draw", "treesitter") then
---@diagnostic disable-next-line: assign-type-mismatch
opts.completion.menu.draw.treesitter = true
end
end
-- Unset custom prop to pass blink.cmp validation
opts.sources.compat = nil