Correction of <S-TAB> behavior

This commit is contained in:
MimiValsi 2024-09-28 08:44:02 +02:00
parent 5e260f2c20
commit aa22e410ec
1 changed files with 2 additions and 2 deletions

View File

@ -98,8 +98,8 @@ return { -- Autocompletion
end, { 'i', 's' }), end, { 'i', 's' }),
['<S-Tab>'] = cmp.mapping(function(fallback) ['<S-Tab>'] = cmp.mapping(function(fallback)
if cmp.visible() then if cmp.visible() then
cmp.select_next_item() cmp.select_prev_item()
elseif luasnip.locally_jumpable(-1) then elseif luasnip.jumpable(-1) then
luasnip.jump(-1) luasnip.jump(-1)
else else
fallback() fallback()