add support for blink.cmp
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 have you found a workaround/solution for autopair completion for blink, by chance?
@olivertzeng have you found a workaround/solution for autopair completion for blink, by chance?
Unfortunately no. :(
I have found this: https://github.com/Saghen/blink.cmp/discussions/157
Working fine for me
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 } } }?
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())
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.
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.
Still important to me!
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
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.
I hate stalebots.
I'm running into this issue too.
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.
no
can someone remove stalebot?
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