Quellcode durchsuchen

Fix loading cmp config after Packer install (#1524)

Chase Colman vor 3 Jahren
Ursprung
Commit
e93c6abab7
1 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
  1. 6 0
      lua/plugins.lua

+ 6 - 0
lua/plugins.lua

@@ -38,6 +38,12 @@ return {
       "hrsh7th/cmp-path",
       "hrsh7th/cmp-nvim-lua",
     },
+    run = function()
+      -- cmp's config requires cmp to be installed to run the first time
+      if not lvim.builtin.cmp then
+        require("core.cmp").config()
+      end
+    end,
   },
   {
     "rafamadriz/friendly-snippets",