From a12348bc9db2527bba2940fe7b3b5113238e2d9a Mon Sep 17 00:00:00 2001 From: leafee98 Date: Mon, 18 Dec 2023 21:58:36 +0800 Subject: [PATCH] add event VeryLazy to nvim-lsp to setup cmp at start --- lua/plugins/50-lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plugins/50-lsp.lua b/lua/plugins/50-lsp.lua index e051f27..ec7f714 100644 --- a/lua/plugins/50-lsp.lua +++ b/lua/plugins/50-lsp.lua @@ -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()