zbirenbaum / copilot-cmp

Lua plugin to turn github copilot into a cmp source
MIT License
1.18k stars 45 forks source link

Feature request: Add support for blink.cmp #119

Open gldtn opened 1 month ago

gldtn commented 1 month ago

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

Thanks!

souavds commented 3 weeks ago

+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.

sieuwerts commented 3 weeks ago

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.

gldtn commented 3 weeks ago

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.

ecosse3 commented 5 days ago

+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.