Tweak outdated comment about lazy's config key usage. (#1250)

Remove outdated comment describing use of `config` key, replacing with
corrected `opt` key note.

Fixes #1249
This commit is contained in:
ben fleis 2024-12-12 16:50:55 +01:00 committed by GitHub
parent 8d1ef972bc
commit 7bc9d19a4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -267,9 +267,8 @@ require('lazy').setup({
-- which loads which-key before all the UI elements are loaded. Events can be -- which loads which-key before all the UI elements are loaded. Events can be
-- normal autocommands events (`:help autocmd-events`). -- normal autocommands events (`:help autocmd-events`).
-- --
-- Then, because we use the `config` key, the configuration only runs -- Then, because we use the `opt` key (recommended), the configuration runs
-- after the plugin has been loaded: -- after the plugin has been loaded as `require(MODULE).setup(opts)`.
-- config = function() ... end
{ -- Useful plugin to show you pending keybinds. { -- Useful plugin to show you pending keybinds.
'folke/which-key.nvim', 'folke/which-key.nvim',