Fix loading cmp config after Packer install (#1524)

This commit is contained in:
Chase Colman 2021-09-13 13:47:25 +08:00 committed by GitHub
parent ad86b19204
commit e93c6abab7
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,6 +38,12 @@ return {
"hrsh7th/cmp-path", "hrsh7th/cmp-path",
"hrsh7th/cmp-nvim-lua", "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", "rafamadriz/friendly-snippets",