fix blink mini.files incompatibility
This commit is contained in:
+11
-25
@@ -36,32 +36,18 @@ if vim.g.useblinkcmp then
|
|||||||
{
|
{
|
||||||
'saghen/blink.cmp',
|
'saghen/blink.cmp',
|
||||||
opts = {
|
opts = {
|
||||||
keymap = {
|
enabled = function()
|
||||||
preset = 'super-tab',
|
return not vim.tbl_contains({ 'minifiles' }, vim.bo.filetype)
|
||||||
['<C-space>'] = { 'show', 'show_documentation', 'hide_documentation' },
|
and vim.bo.buftype ~= 'prompt'
|
||||||
['<C-e>'] = { 'hide', 'fallback' },
|
and vim.b.completion ~= false
|
||||||
|
end,
|
||||||
['<C-y>'] = {
|
completion = {
|
||||||
LazyVim.cmp.map({ 'select_and_accept', 'ai_accept' }),
|
menu = {
|
||||||
'fallback',
|
auto_show = function(ctx)
|
||||||
|
return ctx.mode ~= 'cmdline'
|
||||||
|
or not vim.tbl_contains({ '/', '?' }, vim.fn.getcmdtype())
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
['<Tab>'] = {
|
|
||||||
'snippet_forward',
|
|
||||||
'fallback',
|
|
||||||
},
|
|
||||||
['<S-Tab>'] = { 'snippet_backward', 'fallback' },
|
|
||||||
|
|
||||||
['<Up>'] = { 'select_prev', 'fallback' },
|
|
||||||
['<Down>'] = { 'select_next', 'fallback' },
|
|
||||||
['<C-p>'] = { 'select_prev', 'fallback' },
|
|
||||||
['<C-n>'] = { 'select_next', 'fallback' },
|
|
||||||
|
|
||||||
['<C-b>'] = { 'scroll_documentation_up', 'fallback' },
|
|
||||||
['<C-f>'] = { 'scroll_documentation_down', 'fallback' },
|
|
||||||
},
|
|
||||||
windows = {
|
|
||||||
selection = 'manual',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user