🐛 Bug(blink.cmp): fix breaking change in cmdline configuration
Blink.cmp now configures cmdline sources and keymaps in their own top-level cmdline table, previously they were mixed in with the default keymaps and sources tables. BREAKING CHANGE: Change to how cmdline is configured in blink.cmp
This commit is contained in:
+9
-8
@@ -62,8 +62,14 @@ if vim.g.useblinkcmp then
|
|||||||
snippets = {
|
snippets = {
|
||||||
preset = 'luasnip',
|
preset = 'luasnip',
|
||||||
},
|
},
|
||||||
sources = {
|
keymap = {
|
||||||
cmdline = function()
|
preset = 'enter',
|
||||||
|
['<C-y>'] = { 'select_and_accept' },
|
||||||
|
['<CR>'] = { 'fallback' },
|
||||||
|
},
|
||||||
|
cmdline = {
|
||||||
|
enabled = true,
|
||||||
|
sources = function()
|
||||||
local type = vim.fn.getcmdtype()
|
local type = vim.fn.getcmdtype()
|
||||||
-- Search forward and backward
|
-- Search forward and backward
|
||||||
if type == '/' or type == '?' then
|
if type == '/' or type == '?' then
|
||||||
@@ -75,12 +81,7 @@ if vim.g.useblinkcmp then
|
|||||||
end
|
end
|
||||||
return {}
|
return {}
|
||||||
end,
|
end,
|
||||||
},
|
keymap = {
|
||||||
keymap = {
|
|
||||||
preset = 'enter',
|
|
||||||
['<C-y>'] = { 'select_and_accept' },
|
|
||||||
['<CR>'] = { 'fallback' },
|
|
||||||
cmdline = {
|
|
||||||
preset = 'enter',
|
preset = 'enter',
|
||||||
['<C-y>'] = { 'select_and_accept' },
|
['<C-y>'] = { 'select_and_accept' },
|
||||||
['<S-Tab>'] = { 'select_prev', 'fallback' },
|
['<S-Tab>'] = { 'select_prev', 'fallback' },
|
||||||
|
|||||||
Reference in New Issue
Block a user