From cdc20b8533a84ec77991362dece302acc09a60b0 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 14 Dec 2024 07:33:19 +0100 Subject: [PATCH 1/2] feat(config): allow plugins to disable blink for some buffers --- lua/blink/cmp/config/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/blink/cmp/config/init.lua b/lua/blink/cmp/config/init.lua index 0465f596..ee400398 100644 --- a/lua/blink/cmp/config/init.lua +++ b/lua/blink/cmp/config/init.lua @@ -16,7 +16,7 @@ local validate = require('blink.cmp.config.utils').validate --- @type blink.cmp.ConfigStrict local config = { - enabled = function() return vim.bo.buftype ~= 'prompt' end, + enabled = function() return vim.bo.buftype ~= 'prompt' and vim.b.blink_cmp ~= false end, keymap = require('blink.cmp.config.keymap').default, completion = require('blink.cmp.config.completion').default, fuzzy = require('blink.cmp.config.fuzzy').default, From c7dcc5e5a25628964edf4e1390ede112bf887228 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 14 Dec 2024 17:24:15 +0100 Subject: [PATCH 2/2] refactor: blink_cmp -> completion --- lua/blink/cmp/config/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/blink/cmp/config/init.lua b/lua/blink/cmp/config/init.lua index ee400398..c30960ff 100644 --- a/lua/blink/cmp/config/init.lua +++ b/lua/blink/cmp/config/init.lua @@ -16,7 +16,7 @@ local validate = require('blink.cmp.config.utils').validate --- @type blink.cmp.ConfigStrict local config = { - enabled = function() return vim.bo.buftype ~= 'prompt' and vim.b.blink_cmp ~= false end, + enabled = function() return vim.bo.buftype ~= 'prompt' and vim.b.completion ~= false end, keymap = require('blink.cmp.config.keymap').default, completion = require('blink.cmp.config.completion').default, fuzzy = require('blink.cmp.config.fuzzy').default,