Skip to content

Commit d9cfd62

Browse files
benfleisjimmielyon
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 bd78d3f commit d9cfd62

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
@@ -275,9 +275,8 @@ require('lazy').setup({
275275
-- which loads which-key before all the UI elements are loaded. Events can be
276276
-- normal autocommands events (`:help autocmd-events`).
277277
--
278-
-- Then, because we use the `config` key, the configuration only runs
279-
-- after the plugin has been loaded:
280-
-- config = function() ... end
278+
-- Then, because we use the `opt` key (recommended), the configuration runs
279+
-- after the plugin has been loaded as `require(MODULE).setup(opts)`.
281280

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

0 commit comments

Comments
 (0)