Преглед на файлове

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
ben fleis преди 1 година
родител
ревизия
7bc9d19a4d
променени са 1 файла, в които са добавени 2 реда и са изтрити 3 реда
  1. 2 3
      init.lua

+ 2 - 3
init.lua

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