Skip to content

Commit 8e887ff

Browse files
rivenirvanabfabio
authored andcommitted
docs: Add documentation for lazy's init key
Guide users towards lazy's `init` key for plugins written in VimScript.
1 parent bcf22df commit 8e887ff

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

init.lua

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

0 commit comments

Comments
 (0)