Skip to content

Commit ad50ccc

Browse files
committed
docs: Add documentation for lazy's init key
Guide users towards lazy's `init` key for plugins written in VimScript.
1 parent 3338d39 commit ad50ccc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

init.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@ require('lazy').setup({
267267
-- end,
268268
-- }
269269
--
270+
-- For plugins written in VimScript, use `init = function() ... end` to set
271+
-- configuration options, usually in the format `vim.g.*`. This can also
272+
-- contain conditionals or any other setup logic you need for the plugin.
273+
--
270274
-- Here is a more advanced example where we pass configuration
271275
-- options to `gitsigns.nvim`.
272276
--

0 commit comments

Comments
 (0)