From 63ff776758996733e747ff4ffa5c1c3f05cebc8a Mon Sep 17 00:00:00 2001 From: jdhao Date: Fri, 1 Sep 2023 20:50:53 +0200 Subject: fix loading order of nvim-cmp and nvim-lsp --- lua/plugins.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/plugins.lua') diff --git a/lua/plugins.lua b/lua/plugins.lua index 3cd2004..cd8667c 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -23,7 +23,7 @@ require("lazy").setup { -- auto-completion engine { "hrsh7th/nvim-cmp", - event = 'VeryLazy', + event = 'InsertEnter', dependencies = { "hrsh7th/cmp-nvim-lsp", "onsails/lspkind-nvim", @@ -40,7 +40,7 @@ require("lazy").setup { { "neovim/nvim-lspconfig", - event = 'VeryLazy', + event = { 'BufRead', 'BufNewFile' }, config = function() require("config.lsp") end, -- cgit v1.2.3