summaryrefslogtreecommitdiff
path: root/lua/lvim
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lvim')
-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" } },
+ },
},
},
},