🐛 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:
@@ -69,6 +69,7 @@ if vim.g.useblinkcmp then
|
|||||||
},
|
},
|
||||||
cmdline = {
|
cmdline = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
|
completion = { menu = { auto_show = true } },
|
||||||
sources = function()
|
sources = function()
|
||||||
local type = vim.fn.getcmdtype()
|
local type = vim.fn.getcmdtype()
|
||||||
-- Search forward and backward
|
-- Search forward and backward
|
||||||
@@ -86,6 +87,7 @@ if vim.g.useblinkcmp then
|
|||||||
['<C-y>'] = { 'select_and_accept' },
|
['<C-y>'] = { 'select_and_accept' },
|
||||||
['<S-Tab>'] = { 'select_prev', 'fallback' },
|
['<S-Tab>'] = { 'select_prev', 'fallback' },
|
||||||
['<Tab>'] = { 'select_next', 'fallback' },
|
['<Tab>'] = { 'select_next', 'fallback' },
|
||||||
|
['<Enter>'] = { 'accept_and_enter', 'fallback' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user