diff options
author | Chris Patti <feoh@feoh.org> | 2023-05-15 12:12:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-15 12:12:55 -0400 |
commit | ce2981db4b0bd379aa1a8128bfcabe5f8dea892f (patch) | |
tree | ef0c1b7ef779b6a44c74bcb58fbc287981acf6c9 | |
parent | 9469575bdc0325f6212276259f891d94dac7b2e6 (diff) | |
parent | 2844f61d968501b531758e8a301a53a77b2fb69e (diff) |
Merge pull request #302 from mech-a/mech-a-patch-1
change luasnip tab jumping to locally jumpable
-rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -475,7 +475,7 @@ cmp.setup { ['<Tab>'] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_next_item() - elseif luasnip.expand_or_jumpable() then + elseif luasnip.expand_or_locally_jumpable() then luasnip.expand_or_jump() else fallback() @@ -484,7 +484,7 @@ cmp.setup { ['<S-Tab>'] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_prev_item() - elseif luasnip.jumpable(-1) then + elseif luasnip.locally_jumpable(-1) then luasnip.jump(-1) else fallback() |