Skip to content

Commit 1cac5a1

Browse files
authored
Merge pull request nvim-lua#302 from mech-a/mech-a-patch-1
change luasnip tab jumping to locally jumpable
2 parents f68e7e5 + bfd84b6 commit 1cac5a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ cmp.setup {
475475
['<Tab>'] = cmp.mapping(function(fallback)
476476
if cmp.visible() then
477477
cmp.select_next_item()
478-
elseif luasnip.expand_or_jumpable() then
478+
elseif luasnip.expand_or_locally_jumpable() then
479479
luasnip.expand_or_jump()
480480
else
481481
fallback()
@@ -484,7 +484,7 @@ cmp.setup {
484484
['<S-Tab>'] = cmp.mapping(function(fallback)
485485
if cmp.visible() then
486486
cmp.select_prev_item()
487-
elseif luasnip.jumpable(-1) then
487+
elseif luasnip.locally_jumpable(-1) then
488488
luasnip.jump(-1)
489489
else
490490
fallback()

0 commit comments

Comments
 (0)