mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 14:35:37 +00:00
luasnip jumping
This commit is contained in:
parent
e58763a168
commit
4a8f41a151
@ -217,7 +217,16 @@ require('packer').startup(function(use)
|
||||
['<CR>'] = cmp.mapping.confirm({
|
||||
behavior = cmp.ConfirmBehavior.Insert,
|
||||
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 = {
|
||||
{ name = 'nvim_lua' },
|
||||
|
Loading…
Reference in New Issue
Block a user