disable tab for cmp again
This commit is contained in:
parent
36a6d599eb
commit
41bcb301c8
@ -53,9 +53,7 @@ return {
|
|||||||
s = cmp.mapping.confirm({ select = false }),
|
s = cmp.mapping.confirm({ select = false }),
|
||||||
}),
|
}),
|
||||||
['<Tab>'] = cmp.mapping(function(fallback)
|
['<Tab>'] = cmp.mapping(function(fallback)
|
||||||
if cmp.visible() then
|
if luasnip.expand_or_jumpable() then
|
||||||
cmp.select_next_item()
|
|
||||||
elseif luasnip.expand_or_jumpable() then
|
|
||||||
vim.api.nvim_feedkeys(t('<Plug>luasnip-expand-or-jump'), '', true)
|
vim.api.nvim_feedkeys(t('<Plug>luasnip-expand-or-jump'), '', true)
|
||||||
else
|
else
|
||||||
fallback()
|
fallback()
|
||||||
@ -65,9 +63,7 @@ return {
|
|||||||
's',
|
's',
|
||||||
}),
|
}),
|
||||||
['<S-Tab>'] = cmp.mapping(function(fallback)
|
['<S-Tab>'] = cmp.mapping(function(fallback)
|
||||||
if cmp.visible() then
|
if luasnip.jumpable(-1) then
|
||||||
cmp.select_prev_item()
|
|
||||||
elseif luasnip.jumpable(-1) then
|
|
||||||
vim.api.nvim_feedkeys(t('<Plug>luasnip-jump-prev'), '', true)
|
vim.api.nvim_feedkeys(t('<Plug>luasnip-jump-prev'), '', true)
|
||||||
else
|
else
|
||||||
fallback()
|
fallback()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user