Changed the lazy loading properties of some plugins

This commit is contained in:
kanishka-sahoo 2024-11-08 09:16:48 +05:30
parent c31b222a8b
commit 6688e75c92
1 changed files with 3 additions and 2 deletions

View File

@ -265,6 +265,7 @@ require('lazy').setup({
'MunifTanjim/nui.nvim', 'MunifTanjim/nui.nvim',
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
}, },
event = 'UIEnter',
config = function() config = function()
vim.keymap.set('n', '<leader>e', '<Cmd>Neotree toggle<CR>') vim.keymap.set('n', '<leader>e', '<Cmd>Neotree toggle<CR>')
end, end,
@ -287,7 +288,7 @@ require('lazy').setup({
{ -- Useful plugin to show you pending keybinds. { -- Useful plugin to show you pending keybinds.
'folke/which-key.nvim', 'folke/which-key.nvim',
event = 'VimEnter', -- Sets the loading event to 'VimEnter' event = 'UIEnter', -- Sets the loading event to 'VimEnter'
opts = { opts = {
icons = { icons = {
-- set icon mappings to true if you have a Nerd Font -- set icon mappings to true if you have a Nerd Font
@ -348,7 +349,7 @@ require('lazy').setup({
{ -- Fuzzy Finder (files, lsp, etc) { -- Fuzzy Finder (files, lsp, etc)
'nvim-telescope/telescope.nvim', 'nvim-telescope/telescope.nvim',
event = 'VimEnter', event = 'UIEnter',
branch = '0.1.x', branch = '0.1.x',
dependencies = { dependencies = {
'nvim-lua/plenary.nvim', 'nvim-lua/plenary.nvim',