luasnip jumping

This commit is contained in:
Noah Masur 2021-11-14 20:32:02 -05:00
parent e58763a168
commit 4a8f41a151

View File

@ -217,7 +217,16 @@ require('packer').startup(function(use)
['<CR>'] = cmp.mapping.confirm({ ['<CR>'] = cmp.mapping.confirm({
behavior = cmp.ConfirmBehavior.Insert, behavior = cmp.ConfirmBehavior.Insert,
select = true, select = true,
}) }),
['<C-r>'] = cmp.mapping.confirm({
behavior = cmp.ConfirmBehavior.Replace,
select = true,
}),
['<C-l>'] = cmp.mapping(function(fallback)
if require('luasnip').expand_or_jumpable() then
require('luasnip').expand_or_jump()
end
end, {"i", "s"})
}, },
sources = { sources = {
{ name = 'nvim_lua' }, { name = 'nvim_lua' },