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

Guide users towards lazy's `init` key for plugins written in VimScript.
This commit is contained in:
Arvin Verain 2025-06-02 11:21:51 +08:00 committed by Ori Perry
parent 3a73ab8e11
commit 10c4a1ce4f
1 changed files with 4 additions and 0 deletions

View File

@ -269,6 +269,10 @@ require('lazy').setup({
-- end, -- 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 -- Here is a more advanced example where we pass configuration
-- options to `gitsigns.nvim`. -- options to `gitsigns.nvim`.
-- --