summaryrefslogtreecommitdiffstats
path: root/lua/conf
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2024-11-19 13:24:42 -0600
committerSquibid <me@zacharyscheiman.com>2024-11-19 13:24:42 -0600
commit35ebc9841ccddf1f274fc23333596e3f1ae4a83d (patch)
tree4574f57f7a5128cce762204c2cca5a05b243ff03 /lua/conf
parentc727e80e39bc8f84a145fd5431531b846d29c5c9 (diff)
downloadnvim-35ebc9841ccddf1f274fc23333596e3f1ae4a83d.tar.gz
nvim-35ebc9841ccddf1f274fc23333596e3f1ae4a83d.tar.bz2
nvim-35ebc9841ccddf1f274fc23333596e3f1ae4a83d.zip
add another event for luasnip to watch
Diffstat (limited to '')
-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 = {