Skip to content

Commit

Permalink
Tweak outdated comment about lazy's config key usage. (nvim-lua#1250)
Browse files Browse the repository at this point in the history
Remove outdated comment describing use of `config` key, replacing with
corrected `opt` key note.

Fixes nvim-lua#1249
  • Loading branch information
benfleis authored and samiiali committed Dec 25, 2024
1 parent 8cf7dae commit f9f3b67
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,8 @@ require('lazy').setup({
-- 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
-- after the plugin has been loaded:
-- config = function() ... end
-- Then, because we use the `opt` key (recommended), the configuration runs
-- after the plugin has been loaded as `require(MODULE).setup(opts)`.

{ -- Useful plugin to show you pending keybinds.
'folke/which-key.nvim',
Expand Down

0 comments on commit f9f3b67

Please sign in to comment.