From 6f9845e2f8dcbef4d50bb127a91d071c9be08820 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 22 Dec 2022 21:50:05 +0000 Subject: [PATCH] chore(build): auto-generate vimdoc --- doc/lazy.nvim.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/doc/lazy.nvim.txt b/doc/lazy.nvim.txt index 6627324c..d4203561 100644 --- a/doc/lazy.nvim.txt +++ b/doc/lazy.nvim.txt @@ -120,7 +120,7 @@ PLUGIN SPEC *lazy.nvim-plugin-spec* │**enabled** │boolean? or fun():boolean │When false, or if the function returns false, then this plugin will not be used │ │**dependencies**│LazySpec[] │A list of plugin specs that should be loaded when the plugin loads. Dependencies are always lazy-loaded unless specified otherwise │ │**init** │fun(LazyPlugin) │init functions are always executed during startup │ -│**config** │fun(LazyPlugin) │config is executed when the plugin loads │ +│**config** │fun(LazyPlugin) or true or table │config is executed when the plugin loads. You can also set to true or pass a table, that will be passed to require("plugin").setup(opts) │ │**build** │fun(LazyPlugin) │build is executed when a plugin is installed or updated │ │**branch** │string? │Branch of the repository │ │**tag** │string? │Tag of the repository │ @@ -242,6 +242,20 @@ EXAMPLES ~ end, }, + -- the above could also be written as + { + "nvim-neorg/neorg", + ft = "norg", + config = true, -- run require("norg").setup() + }, + + -- or set custom config + { + "nvim-neorg/neorg", + ft = "norg", + config = { foo = "bar" }, -- run require("norg").setup({foo = "bar"}) + }, + { "dstein64/vim-startuptime", -- lazy-load on a command