copilot-cmp icon indicating copy to clipboard operation
copilot-cmp copied to clipboard

Feature request: Add support for blink.cmp

Open gldtn opened this issue 1 year ago • 6 comments

Is it possible to add support for blink.cmp? https://github.com/Saghen/blink.cmp

Thanks!

gldtn avatar Oct 27 '24 10:10 gldtn

+1

Just switched to blink.cmp. I've tried to setup using the compatibility layer blink.compat repo but without any success. I'd really appreciate the support for blink.

osdva avatar Nov 03 '24 01:11 osdva

I have also tried to set this up like @souavds mentioned, also without success. I'm not really read up on how the compatibility layer works, so I'm not sure if this plugin is compatible right off the bat. But I would be very curious to see if/how this can be done if anyone manages to get it working.

sieuwerts avatar Nov 04 '24 12:11 sieuwerts

I have not tried using blink.compat, by for those that still want/need copilot to function, you could do something like:

copilot:

{
	"zbirenbaum/copilot.lua",
	lazy = true,
	cmd = "Copilot",
	event = "InsertEnter",
	opts = {
		panel = { enabled = false },
		suggestion = {
			auto_trigger = true,
			keymap = {
				accept = "<TAB>",
				accept_word = "<C-w>",
				accept_line = "<C-l>",
				next = "<C-j>",
				prev = "<C-k>",
				dismiss = "<ESC>",
			},
		},
	},
}

And I make sure blink keymaps don't interfere blink..

blink-cmp:

require("blink.cmp").setup({
			keymap = {
				["<C-y>"] = { "accept", "fallback" },
				["<C-n>"] = { "select_next", "fallback" },
				["<C-p>"] = { "select_prev", "fallback" },
			},
})

It's not integrated but at least you get copilot completion.

gldtn avatar Nov 04 '24 23:11 gldtn

+1

blink.cmp seems so much faster than nvim-cmp and doesn't lag and I'd love to have native copilot support for it.

ecosse3 avatar Nov 24 '24 00:11 ecosse3

Guys. check blink-cmp-copilot!

r1cheu avatar Jan 13 '25 07:01 r1cheu

Another alternative that works fine for me with blink.cmp https://github.com/fang2hou/blink-copilot 😉

nickgnd avatar Apr 21 '25 20:04 nickgnd