add event VeryLazy to nvim-lsp to setup cmp at start

This commit is contained in:
leafee98 2023-12-18 21:58:36 +08:00
parent 59e0f8b285
commit a12348bc9d

View file

@ -48,7 +48,7 @@ return {
"hrsh7th/cmp-cmdline",
"L3MON4D3/LuaSnip",
},
event = { "BufReadPre", "BufNewFile" },
event = { "BufReadPre", "BufNewFile", "VeryLazy" },
cmd = { "LspInfo", "LspInstall", "LspUninstall" },
config = function (_, opts)
local capabilities = require("cmp_nvim_lsp").default_capabilities()