docs: Add documentation for lazy's `init` key

Guide users towards lazy's `init` key for plugins written in VimScript.
pull/1582/head
Arvin Verain 1 month ago
parent 3338d39206
commit ad50cccc28
No known key found for this signature in database
GPG Key ID: EC2BB2E0EC3CE2FA

@ -267,6 +267,10 @@ require('lazy').setup({
-- end,
-- }
--
-- For plugins written in VimScript, use `init = function() ... end` to set
-- configuration options, usually in the format `vim.g.*`. This can also
-- contain conditionals or any other setup logic you need for the plugin.
--
-- Here is a more advanced example where we pass configuration
-- options to `gitsigns.nvim`.
--

Loading…
Cancel
Save