summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2022-11-25 14:35:01 +0100
committeropalmay <[email protected]>2023-02-06 21:40:05 +0200
commit449a19874c5fa8096f61192d00e3df6d665e6fe3 (patch)
tree70645190a0321c3e8694c7eb699f869684e0c0dc
parent2c8b5e52753357632c75ce2af911a8d3fb23accf (diff)
fixup!: ext_opts should be under config
-rw-r--r--lua/lvim/core/luasnip.lua26
1 files changed, 12 insertions, 14 deletions
diff --git a/lua/lvim/core/luasnip.lua b/lua/lvim/core/luasnip.lua
index 10782d0e..dde61e5b 100644
--- a/lua/lvim/core/luasnip.lua
+++ b/lua/lvim/core/luasnip.lua
@@ -21,22 +21,20 @@ function M.config()
},
config = {
history = false,
- updateevents = "TextChanged,TextChangedI",
+ update_events = "InsertLeave",
+ enable_autosnippets = false,
ext_opts = {
- -- Will be populated within config function
- },
- },
- ext_opts = {
- -- Show virtual text to signal when you are inside an sippets
- [types.insertNode] = {
- active = {
- virt_text = { { "<-- snip insert", "BufferInactiveIndex" } },
+ -- Show virtual text to signal when you are inside an sippets
+ [types.insertNode] = {
+ active = {
+ virt_text = { { "<-- snip insert", "BufferInactiveIndex" } },
+ },
},
- },
- -- Helps to notice when you are within a choice node
- [types.choiceNode] = {
- active = {
- virt_text = { { "<-- choice", "BufferInactiveIndex" } },
+ -- Helps to notice when you are within a choice node
+ [types.choiceNode] = {
+ active = {
+ virt_text = { { "<-- choice", "BufferInactiveIndex" } },
+ },
},
},
},