Skip to content

Commit 6a10252

Browse files
benfleissychugin
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 59187e0 commit 6a10252

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
@@ -281,9 +281,8 @@ require('lazy').setup({
281281
-- which loads which-key before all the UI elements are loaded. Events can be
282282
-- normal autocommands events (`:help autocmd-events`).
283283
--
284-
-- Then, because we use the `config` key, the configuration only runs
285-
-- after the plugin has been loaded:
286-
-- config = function() ... end
284+
-- Then, because we use the `opt` key (recommended), the configuration runs
285+
-- after the plugin has been loaded as `require(MODULE).setup(opts)`.
287286

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

0 commit comments

Comments
 (0)