summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lua/conf/plugins/luasnip.lua4
1 files changed, 3 insertions, 1 deletions
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 = {