diff options
author | Chase Colman <[email protected]> | 2021-09-13 13:47:25 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-09-13 07:47:25 +0200 |
commit | e93c6abab7d9fb3885cb53310d840204ff6ffc01 (patch) | |
tree | 2617eecbe1947e39a5942592130acdad86bfeb7c /lua/plugins.lua | |
parent | ad86b1920426577ca2d0e6d56c309a190455c14f (diff) |
Fix loading cmp config after Packer install (#1524)
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r-- | lua/plugins.lua | 6 |
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", |