From b23533f4c50e8c62480f51bf4a51a126ada8fb51 Mon Sep 17 00:00:00 2001 From: Chase Colman Date: Tue, 9 Nov 2021 17:41:25 +0800 Subject: fix(cmp): if possible jump in the snippet after completion fix(cmp): update cmp to fix textwidth calculation and indent bugs --- lua/lvim/core/cmp.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lua/lvim/core/cmp.lua') diff --git a/lua/lvim/core/cmp.lua b/lua/lvim/core/cmp.lua index 375f7605..89159ebb 100644 --- a/lua/lvim/core/cmp.lua +++ b/lua/lvim/core/cmp.lua @@ -283,6 +283,9 @@ M.config = function() [""] = cmp.mapping.abort(), [""] = cmp.mapping(function(fallback) if cmp.visible() and cmp.confirm(lvim.builtin.cmp.confirm_opts) then + if jumpable() then + luasnip.jump(1) + end return end -- cgit v1.2.3