From 35ebc9841ccddf1f274fc23333596e3f1ae4a83d Mon Sep 17 00:00:00 2001 From: Squibid Date: Tue, 19 Nov 2024 13:24:42 -0600 Subject: add another event for luasnip to watch --- lua/conf/plugins/luasnip.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lua/conf') diff --git a/lua/conf/plugins/luasnip.lua b/lua/conf/plugins/luasnip.lua index 0af414b..f3ed0f3 100644 --- a/lua/conf/plugins/luasnip.lua +++ b/lua/conf/plugins/luasnip.lua @@ -13,7 +13,9 @@ return { 'L3MON4D3/LuaSnip', luasnip.config.set_config { history = true, -- return back into snippet - updateevents = { "TextChanged", "TextChangedI" }, -- update on text insert + + -- update on text insert and cursor hold + updateevents = { "TextChanged", "TextChangedI", "CursorHold" }, ext_opts = { [types.choiceNode] = { active = { -- cgit v1.2.1