Skip to content

Commit 10c4a1c

Browse files
rivenirvanaoriori1703
authored andcommitted
docs: Add documentation for lazy's init key
Guide users towards lazy's `init` key for plugins written in VimScript.
1 parent 3a73ab8 commit 10c4a1c

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
@@ -269,6 +269,10 @@ require('lazy').setup({
269269
-- end,
270270
-- }
271271
--
272+
-- For plugins written in VimScript, use `init = function() ... end` to set
273+
-- configuration options, usually in the format `vim.g.*`. This can also
274+
-- contain conditionals or any other setup logic you need for the plugin.
275+
--
272276
-- Here is a more advanced example where we pass configuration
273277
-- options to `gitsigns.nvim`.
274278
--

0 commit comments

Comments
 (0)