🐛 Bug(blink.cmp): tweak the cmdline completion behavior

This allows enter to send the command even if there is a suggestion to select. Avoids needing to
press enter twice.
This commit is contained in:
2025-02-27 16:51:04 -05:00
parent e4f7a7473d
commit aacbf5fb99
+2
View File
@@ -69,6 +69,7 @@ if vim.g.useblinkcmp then
},
cmdline = {
enabled = true,
completion = { menu = { auto_show = true } },
sources = function()
local type = vim.fn.getcmdtype()
-- Search forward and backward
@@ -86,6 +87,7 @@ if vim.g.useblinkcmp then
['<C-y>'] = { 'select_and_accept' },
['<S-Tab>'] = { 'select_prev', 'fallback' },
['<Tab>'] = { 'select_next', 'fallback' },
['<Enter>'] = { 'accept_and_enter', 'fallback' },
},
},
},