feat(spec): config can be true or a table that will be passed to require("plugin").setup(config)

This commit is contained in:
Folke Lemaitre 2022-12-22 22:41:44 +01:00
parent 9e983898b1
commit 2a7b0047dd
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 69 additions and 2 deletions

View file

@ -16,6 +16,20 @@ return {
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