Skip to content

Commit df2b77b

Browse files
restrayTimothée Belhomme
authored and
Timothée Belhomme
committed
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 c0fd2f3 commit df2b77b

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
@@ -267,9 +267,8 @@ require('lazy').setup({
267267
-- which loads which-key before all the UI elements are loaded. Events can be
268268
-- normal autocommands events (`:help autocmd-events`).
269269
--
270-
-- Then, because we use the `config` key, the configuration only runs
271-
-- after the plugin has been loaded:
272-
-- config = function() ... end
270+
-- Then, because we use the `opt` key (recommended), the configuration runs
271+
-- after the plugin has been loaded as `require(MODULE).setup(opts)`.
273272

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

0 commit comments

Comments
 (0)