From 58bbb037704f7c3151e8596a7a3fed9613e98732 Mon Sep 17 00:00:00 2001 From: psychhim Date: Sun, 12 Oct 2025 14:55:59 +0530 Subject: [PATCH] Update: Lazy loading for indent-blankline, Comment, gitsigns, which-key --- init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 0bfbc98..6960e76 100644 --- a/init.lua +++ b/init.lua @@ -135,10 +135,11 @@ require('lazy').setup({ }, -- Useful plugin to show you pending keybinds. - { 'folke/which-key.nvim', opts = {} }, + { 'folke/which-key.nvim', event = 'VeryLazy', opts = {} }, { -- Adds git related signs to the gutter, as well as utilities for managing changes 'lewis6991/gitsigns.nvim', + event = 'BufReadPre', opts = { -- See `:help gitsigns.txt` signs = { @@ -235,10 +236,11 @@ require('lazy').setup({ -- Enable `lukas-reineke/indent-blankline.nvim` -- See `:help ibl` main = 'ibl', + event = 'BufReadPre', opts = {}, }, -- "gc" to comment visual regions/lines - { 'numToStr/Comment.nvim', opts = {} }, + { 'numToStr/Comment.nvim', event = 'BufReadPre', opts = {} }, { -- Highlight, edit, and navigate code 'nvim-treesitter/nvim-treesitter',