From 4a8f41a1510a00bf13697525552ab8f0def1a8a4 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sun, 14 Nov 2021 20:32:02 -0500 Subject: [PATCH] luasnip jumping --- nvim.configlink/init.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nvim.configlink/init.lua b/nvim.configlink/init.lua index 874340f..062dc73 100644 --- a/nvim.configlink/init.lua +++ b/nvim.configlink/init.lua @@ -217,7 +217,16 @@ require('packer').startup(function(use) [''] = cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Insert, select = true, - }) + }), + [''] = cmp.mapping.confirm({ + behavior = cmp.ConfirmBehavior.Replace, + select = true, + }), + [''] = cmp.mapping(function(fallback) + if require('luasnip').expand_or_jumpable() then + require('luasnip').expand_or_jump() + end + end, {"i", "s"}) }, sources = { { name = 'nvim_lua' },