diff options
author | Chase Colman <[email protected]> | 2021-11-09 17:41:25 +0800 |
---|---|---|
committer | kylo252 <[email protected]> | 2021-11-10 11:09:42 +0100 |
commit | b23533f4c50e8c62480f51bf4a51a126ada8fb51 (patch) | |
tree | a5641ffd41b0236d108ac53a819505188cde378f /lua/lvim/core/cmp.lua | |
parent | ee4d580bb2e1dbe7fdb90e8dca5d6296a50eba53 (diff) |
fix(cmp): if possible jump in the snippet after completion
fix(cmp): update cmp to fix textwidth calculation and indent bugs
Diffstat (limited to 'lua/lvim/core/cmp.lua')
-rw-r--r-- | lua/lvim/core/cmp.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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() ["<C-e>"] = cmp.mapping.abort(), ["<CR>"] = 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 |