mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 19:34:15 +00:00
docs: Add example of multiple plugin spec modules
This commit is contained in:
parent
53e1c49bae
commit
5b7d567674
1 changed files with 13 additions and 0 deletions
13
README.md
13
README.md
|
@ -671,6 +671,19 @@ require("lazy").setup("plugins")
|
|||
require("lazy").setup({{import = "plugins"}})
|
||||
```
|
||||
|
||||
If you need to load plugins from multiple locations, such as for a global and
|
||||
a site-local Neovim configuration, you can do that with multiple import
|
||||
statements:
|
||||
|
||||
```lua
|
||||
require("lazy").setup(
|
||||
{
|
||||
{ import = "plugins.global" },
|
||||
{ import = "plugins.local" },
|
||||
}
|
||||
)
|
||||
```
|
||||
|
||||
To import multiple modules from a plugin, add additional specs for each import.
|
||||
For example, to import LazyVim core plugins and an optional plugin:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue