소스 검색

fixup!: ext_opts should be under config

kylo252 2 년 전
부모
커밋
449a19874c
1개의 변경된 파일12개의 추가작업 그리고 14개의 파일을 삭제
  1. 12 14
      lua/lvim/core/luasnip.lua

+ 12 - 14
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" } },
+          },
         },
       },
     },