Skip to content

Commit 992db9c

Browse files
authored
Merge pull request #11 from rivenirvana/init-key-docs
docs: Add documentation for lazy's `init` key
2 parents 200e0e6 + ad50ccc commit 992db9c

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
@@ -263,6 +263,10 @@ require('lazy').setup({
263263
-- end,
264264
-- }
265265
--
266+
-- For plugins written in VimScript, use `init = function() ... end` to set
267+
-- configuration options, usually in the format `vim.g.*`. This can also
268+
-- contain conditionals or any other setup logic you need for the plugin.
269+
--
266270
-- Here is a more advanced example where we pass configuration
267271
-- options to `gitsigns.nvim`.
268272
--

0 commit comments

Comments
 (0)