summaryrefslogtreecommitdiffstats
path: root/nvim/init.lua
diff options
context:
space:
mode:
authorben fleis <benfleis@users.noreply.github.com>2024-12-12 16:50:55 +0100
committerGitHub <noreply@github.com>2024-12-12 10:50:55 -0500
commit4b79e1e7c1cfca4bc7da5c7741ca712377e02d98 (patch)
treea4ff90d75e1356f65af71d125995c7c59522a2bd /nvim/init.lua
parent172e7f69a3fa89b314b544a99ec89045ec3526f2 (diff)
downloaddots-4b79e1e7c1cfca4bc7da5c7741ca712377e02d98.tar.gz
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
Diffstat (limited to 'nvim/init.lua')
-rw-r--r--nvim/init.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/nvim/init.lua b/nvim/init.lua
index 08717d5..b29693a 100644
--- a/nvim/init.lua
+++ b/nvim/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',