aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/plugins.lua4
1 files changed, 2 insertions, 2 deletions
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,