From f3064248a0ba02b973fbd81f4eb93e18131d2fbc Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 8 Aug 2021 13:38:26 -0400 Subject: new event for vsnip --- lua/core/compe.lua | 6 ------ lua/plugins.lua | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/lua/core/compe.lua b/lua/core/compe.lua index 830cc415..fe41c6e6 100644 --- a/lua/core/compe.lua +++ b/lua/core/compe.lua @@ -114,12 +114,6 @@ M.setup = function() vim.api.nvim_set_keymap("i", "", "v:lua.s_tab_complete()", { expr = true }) vim.api.nvim_set_keymap("s", "", "v:lua.s_tab_complete()", { expr = true }) --- vim.cmd[[ --- imap vsnip#jumpable(1) ? '(vsnip-jump-next)' : '' --- smap vsnip#jumpable(1) ? '(vsnip-jump-next)' : '' --- imap vsnip#jumpable(-1) ? '(vsnip-jump-prev)' : '' --- smap vsnip#jumpable(-1) ? '(vsnip-jump-prev)' : '' --- ]] end return M diff --git a/lua/plugins.lua b/lua/plugins.lua index 592ff7e1..30f326cc 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -57,7 +57,7 @@ return { { "hrsh7th/vim-vsnip", -- wants = "friendly-snippets", - event = "InsertCharPre", + event = "InsertEnter", }, { "rafamadriz/friendly-snippets", -- cgit v1.2.3