From 449a19874c5fa8096f61192d00e3df6d665e6fe3 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Fri, 25 Nov 2022 14:35:01 +0100 Subject: fixup!: ext_opts should be under config --- lua/lvim/core/luasnip.lua | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'lua/lvim/core/luasnip.lua') 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" } }, + }, }, }, }, -- cgit v1.2.3