From ad50cccc280c92fa2bbf72e293b190a3dbc1ea3e Mon Sep 17 00:00:00 2001 From: Arvin Verain Date: Mon, 2 Jun 2025 11:21:51 +0800 Subject: [PATCH] docs: Add documentation for lazy's `init` key Guide users towards lazy's `init` key for plugins written in VimScript. --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index b98ffc61..03eb54aa 100644 --- a/init.lua +++ b/init.lua @@ -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`. --