diff options
| author | jdhao <jdhao@hotmail.com> | 2023-09-05 00:21:13 +0200 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2023-09-05 00:22:02 +0200 |
| commit | 7ff11a9760fcb7cc122de066528b07b1028f7bce (patch) | |
| tree | ff420d5cf19cf3fab73c6f8f845f0f1db1f3a230 /lua | |
| parent | cc4688d089b9650d586697a0738be75559212865 (diff) | |
update plugin lazy loading events
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/plugins.lua | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua index 143634a..4a553b9 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -23,7 +23,8 @@ require("lazy").setup { -- auto-completion engine { "hrsh7th/nvim-cmp", - event = 'InsertEnter', + -- event = 'InsertEnter', + event = 'VeryLazy', dependencies = { "hrsh7th/cmp-nvim-lsp", "onsails/lspkind-nvim", @@ -124,19 +125,19 @@ require("lazy").setup { }, -- A list of colorscheme plugin you may want to try. Find what suits you. - { "navarasu/onedark.nvim" }, - { "sainnhe/edge" }, - { "sainnhe/sonokai" }, - { "sainnhe/gruvbox-material" }, - { "shaunsingh/nord.nvim" }, - { "sainnhe/everforest" }, - { "EdenEast/nightfox.nvim" }, - { "rebelot/kanagawa.nvim" }, - { "catppuccin/nvim", name = "catppuccin" }, - { "rose-pine/neovim", name = "rose-pine" }, - { "olimorris/onedarkpro.nvim" }, - { "tanvirtin/monokai.nvim" }, - { "marko-cerovac/material.nvim" }, + { "navarasu/onedark.nvim", lazy = true }, + { "sainnhe/edge", lazy = true }, + { "sainnhe/sonokai", lazy = true }, + { "sainnhe/gruvbox-material", lazy = true }, + { "shaunsingh/nord.nvim", lazy = true }, + { "sainnhe/everforest", lazy = true }, + { "EdenEast/nightfox.nvim", lazy = true }, + { "rebelot/kanagawa.nvim", lazy = true }, + { "catppuccin/nvim", name = "catppuccin", lazy = true }, + { "rose-pine/neovim", name = "rose-pine", lazy = true }, + { "olimorris/onedarkpro.nvim", lazy = true }, + { "tanvirtin/monokai.nvim", lazy = true }, + { "marko-cerovac/material.nvim", lazy = true }, { "nvim-tree/nvim-web-devicons", event = "VeryLazy" }, @@ -151,7 +152,7 @@ require("lazy").setup { { "akinsho/bufferline.nvim", - event = { "BufRead", "BufNewFile" } , + event = { "BufEnter" } , cond = firenvim_not_active, config = function() require("config.bufferline") @@ -400,7 +401,7 @@ require("lazy").setup { }, -- Modern matchit implementation - { "andymass/vim-matchup", event = "VeryLazy" }, + { "andymass/vim-matchup", event = "BufRead" }, { "tpope/vim-scriptease", cmd = { "Scriptnames", "Message", "Verbose" } }, -- Asynchronous command execution |
