nvim-autopairs icon indicating copy to clipboard operation
nvim-autopairs copied to clipboard

add support for blink.cmp

Open olivertzeng opened this issue 1 year ago • 15 comments

Is your feature request related to a problem? Please describe. https://github.com/Saghen/blink.cmp there is a brand new completion plugin called blink.cmp

Describe the solution you'd like add support for it

Describe alternatives you've considered No

Additional context none

olivertzeng avatar Oct 08 '24 13:10 olivertzeng

@olivertzeng have you found a workaround/solution for autopair completion for blink, by chance?

megalithic avatar Oct 21 '24 12:10 megalithic

@olivertzeng have you found a workaround/solution for autopair completion for blink, by chance?

Unfortunately no. :(

olivertzeng avatar Oct 21 '24 12:10 olivertzeng

I have found this: https://github.com/Saghen/blink.cmp/discussions/157

Working fine for me

smjonas avatar Dec 15 '24 21:12 smjonas

I have found this: Saghen/blink.cmp#157

Working fine for me

what does the nvim-autopairs config need to look like to work with completion = { accept = { auto_brackets = { enabled = true } } }?

jabdinghoff avatar Jan 24 '25 10:01 jabdinghoff

Blink's auto brackets option works fine for me so far (or maybe I just don't know the difference with nvim-autopairs), but maybe it can work with

local cmp_autopairs = require("nvim-autopairs.completion.cmp")

require("blink-cmp").setup({
  keymap = {
    ["<CR>"] = {
      function(cmp) 
        return cmp.accept({
          callback = cmp_autopairs.on_confirm_done
        })
      end
    } 
  }
})

I had this on my nvim-cmp config before I switched to blink

local cmp_autopairs = require("nvim-autopairs.completion.cmp")
cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done())

nasvillanueva avatar Mar 04 '25 01:03 nasvillanueva

Blink's auto brackets option works fine for me so far (or maybe I just don't know the difference with nvim-autopairs), but maybe it can work with

Tried it - didn't have any luck.

llakala avatar Apr 10 '25 04:04 llakala

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 09 '25 08:06 stale[bot]

Still important to me!

llakala avatar Jun 09 '25 10:06 llakala

Still important to me!

return { "windwp/nvim-autopairs", event = "InsertEnter", config = function() local autopairs = require("nvim-autopairs") autopairs.setup({ check_ts = true, enable_check_bracket_line = false, }) end, }

hey just paste this in lua/plugins folder making a new lua file of any name you want and {} () <> [] etc will work

dev-dvnsh avatar Jul 30 '25 10:07 dev-dvnsh

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 28 '25 11:09 stale[bot]

I hate stalebots.

llakala avatar Sep 28 '25 11:09 llakala

I'm running into this issue too.

chancez avatar Sep 30 '25 15:09 chancez

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 29 '25 17:11 stale[bot]

no

olivertzeng avatar Nov 29 '25 17:11 olivertzeng

can someone remove stalebot?

olivertzeng avatar Nov 29 '25 17:11 olivertzeng

For me it works out of the box with blink. It properly adds the brackets when accepting the completion. Or am I missing something?

https://cmp.saghen.dev/configuration/completion.html#auto-brackets

DerRockWolf avatar Dec 20 '25 22:12 DerRockWolf