Skip to content

Commit ae9b9a0

Browse files
benfleisramintheredmn
authored andcommitted
Tweak outdated comment about lazy's config key usage. (nvim-lua#1250)
Remove outdated comment describing use of `config` key, replacing with corrected `opt` key note. Fixes nvim-lua#1249
1 parent 7bea2d8 commit ae9b9a0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

init.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,8 @@ require('lazy').setup({
278278
-- which loads which-key before all the UI elements are loaded. Events can be
279279
-- normal autocommands events (`:help autocmd-events`).
280280
--
281-
-- Then, because we use the `config` key, the configuration only runs
282-
-- after the plugin has been loaded:
283-
-- config = function() ... end
281+
-- Then, because we use the `opt` key (recommended), the configuration runs
282+
-- after the plugin has been loaded as `require(MODULE).setup(opts)`.
284283

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

0 commit comments

Comments
 (0)