From e93c6abab7d9fb3885cb53310d840204ff6ffc01 Mon Sep 17 00:00:00 2001 From: Chase Colman <5411+chase@users.noreply.github.com> Date: Mon, 13 Sep 2021 13:47:25 +0800 Subject: Fix loading cmp config after Packer install (#1524) --- lua/plugins.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lua/plugins.lua') diff --git a/lua/plugins.lua b/lua/plugins.lua index ae20fc93..178fb99e 100644 --- a/lua/plugins.lua +++ b/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", -- cgit v1.2.3