From 91a3c663a7ab6c9ce782e1ff0fd6bc9315f2a670 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sun, 24 Nov 2024 22:03:43 +0100 Subject: [PATCH] fix(blink): make sure blink.compat is setup correctly when used in extras --- lua/lazyvim/plugins/extras/coding/blink.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lua/lazyvim/plugins/extras/coding/blink.lua b/lua/lazyvim/plugins/extras/coding/blink.lua index bb65afc3..9bc66d7e 100644 --- a/lua/lazyvim/plugins/extras/coding/blink.lua +++ b/lua/lazyvim/plugins/extras/coding/blink.lua @@ -21,7 +21,12 @@ return { dependencies = { "rafamadriz/friendly-snippets", -- add blink.compat to dependencies - -- { "saghen/blink.compat", opts = {} }, + { + "saghen/blink.compat", + optional = true, -- make optional so it's only enabled if any extras need it + opts = {}, + version = not vim.g.lazyvim_blink_main and "*", + }, }, event = "InsertEnter", @@ -39,7 +44,6 @@ return { nerd_font_variant = "mono", windows = { autocomplete = { - -- draw = "reversed", winblend = vim.o.pumblend, }, documentation = {