summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChase Colman <[email protected]>2021-09-13 13:47:25 +0800
committerGitHub <[email protected]>2021-09-13 07:47:25 +0200
commite93c6abab7d9fb3885cb53310d840204ff6ffc01 (patch)
tree2617eecbe1947e39a5942592130acdad86bfeb7c
parentad86b1920426577ca2d0e6d56c309a190455c14f (diff)
Fix loading cmp config after Packer install (#1524)
-rw-r--r--lua/plugins.lua6
1 files changed, 6 insertions, 0 deletions
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",