aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins.lua
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2023-09-01 20:50:53 +0200
committerjdhao <jdhao@hotmail.com>2023-09-01 20:52:46 +0200
commit63ff776758996733e747ff4ffa5c1c3f05cebc8a (patch)
treef2ceca3c6952acbea42a33d1615404cc4195b03a /lua/plugins.lua
parent41c8c81f217a3cf724ac173bb43842335a8dd215 (diff)
fix loading order of nvim-cmp and nvim-lsp
Diffstat (limited to 'lua/plugins.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,