update nvim-cmp loading strategy

This commit is contained in:
Pham Huy Hoang 2023-01-05 12:21:17 +09:00 committed by Sidhanth Rathod
parent ae68290e1f
commit 5db2f0978d

View file

@ -136,7 +136,8 @@ local plugins = {
["rafamadriz/friendly-snippets"] = { },
["hrsh7th/nvim-cmp"] = {
event = "InsertEnter",
module = { "cmp", "cmp_nvim_lsp" },
event = { "InsertEnter", "CmdlineEnter" }, -- for users that may use nvim-cmp-cmdline
config = function()
require "plugins.configs.cmp"
end,