Skip to content

Commit 96588e8

Browse files
talirajchrisdd2
authored andcommitted
feat: use VimEnter event instead of VeryLazy (nvim-lua#673)
1 parent b0e3d88 commit 96588e8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

init.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@ require('lazy').setup {
258258
-- lazy loading plugins that don't need to be loaded immediately at startup.
259259
--
260260
-- For example, in the following configuration, we use:
261-
-- event = 'VeryLazy'
261+
-- event = 'VimEnter'
262262
--
263-
-- which loads which-key after all the UI elements are loaded. Events can be
263+
-- which loads which-key before all the UI elements are loaded. Events can be
264264
-- normal autocommands events (`:help autocmd-events`).
265265
--
266266
-- Then, because we use the `config` key, the configuration only runs
@@ -269,7 +269,7 @@ require('lazy').setup {
269269

270270
{ -- Useful plugin to show you pending keybinds.
271271
'folke/which-key.nvim',
272-
event = 'VeryLazy', -- Sets the loading event to 'VeryLazy'
272+
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
273273
config = function() -- This is the function that runs, AFTER loading
274274
require('which-key').setup()
275275

@@ -293,7 +293,7 @@ require('lazy').setup {
293293

294294
{ -- Fuzzy Finder (files, lsp, etc)
295295
'nvim-telescope/telescope.nvim',
296-
event = 'VeryLazy',
296+
event = 'VimEnter',
297297
branch = '0.1.x',
298298
dependencies = {
299299
'nvim-lua/plenary.nvim',
@@ -734,7 +734,7 @@ require('lazy').setup {
734734
},
735735

736736
-- Highlight todo, notes, etc in comments
737-
{ 'folke/todo-comments.nvim', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },
737+
{ 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },
738738

739739
{ -- Collection of various small independent plugins/modules
740740
'echasnovski/mini.nvim',

0 commit comments

Comments
 (0)