Skip to content

Commit

Permalink
feat: use VimEnter event instead of VeryLazy (nvim-lua#673)
Browse files Browse the repository at this point in the history
  • Loading branch information
taliraj authored and cjstock committed Apr 16, 2024
1 parent 59e5cbc commit 7cdb57e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ require('lazy').setup {
-- lazy loading plugins that don't need to be loaded immediately at startup.
--
-- For example, in the following configuration, we use:
-- event = 'VeryLazy'
-- event = 'VimEnter'
--
-- which loads which-key after all the UI elements are loaded. Events can be
-- which loads which-key before all the UI elements are loaded. Events can be
-- normal autocommands events (`:help autocmd-events`).
--
-- Then, because we use the `config` key, the configuration only runs
Expand All @@ -268,7 +268,7 @@ require('lazy').setup {

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

Expand All @@ -292,7 +292,7 @@ require('lazy').setup {

{ -- Fuzzy Finder (files, lsp, etc)
'nvim-telescope/telescope.nvim',
event = 'VeryLazy',
event = 'VimEnter',
branch = '0.1.x',
dependencies = {
'nvim-lua/plenary.nvim',
Expand Down Expand Up @@ -732,7 +732,7 @@ require('lazy').setup {
},

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

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

0 comments on commit 7cdb57e

Please sign in to comment.