2024-06-23 17:44:23 +01:00
|
|
|
---
|
2024-06-24 07:35:16 +01:00
|
|
|
sidebar_position: 10
|
2024-06-23 17:44:23 +01:00
|
|
|
---
|
2024-06-24 07:35:16 +01:00
|
|
|
# 📰 What's new?
|
2024-06-23 17:44:23 +01:00
|
|
|
|
2024-06-24 07:35:16 +01:00
|
|
|
## 11.x
|
2024-06-23 17:44:23 +01:00
|
|
|
|
2024-06-24 07:35:16 +01:00
|
|
|
- **New Website**: There's a whole new website with a fresh look and improved documentation.
|
2024-06-24 14:11:51 +01:00
|
|
|
Check it out at [https://lazy.folke.io](https://lazy.folke.io/).
|
2024-06-24 07:35:16 +01:00
|
|
|
The GitHub `README.md` has been updated to point to the new website.
|
|
|
|
The `vimdoc` contains all the information that is available on the website.
|
2024-06-23 20:03:42 +01:00
|
|
|
|
|
|
|
- **Spec Resolution & Merging**: the code that resolves a final spec from a plugin's fragments has been rewritten.
|
|
|
|
This should be a tiny bit faster, but more importantly, fixes some issues and is easier to maintain.
|
2024-06-24 07:35:16 +01:00
|
|
|
|
2024-06-23 20:03:42 +01:00
|
|
|
- [Packages](https://lazy.folke.io/packages) can now specify their dependencies and configuration using one of:
|
2024-06-24 14:11:51 +01:00
|
|
|
|
2024-06-23 20:03:42 +01:00
|
|
|
- **Lazy**: `lazy.lua` file
|
|
|
|
- **Rockspec**: [luarocks](https://luarocks.org/) `*-scm-1.rockspec` [file](https://github.com/luarocks/luarocks/wiki/Rockspec-format)
|
|
|
|
- **Packspec**: `pkg.json` (experimental, since the [format](https://github.com/neovim/packspec/issues/41) is not quite there yet)
|
2024-06-23 17:44:23 +01:00
|
|
|
|
2024-06-24 16:48:32 +01:00
|
|
|
Related _lazy.nvim_ options:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
{
|
|
|
|
pkg = {
|
|
|
|
enabled = true,
|
|
|
|
cache = vim.fn.stdpath("state") .. "/lazy/pkg-cache.lua",
|
|
|
|
-- the first package source that is found for a plugin will be used.
|
|
|
|
sources = {
|
|
|
|
"lazy",
|
2024-06-24 18:44:35 +01:00
|
|
|
"rockspec", -- will only be used when rocks.enabled is true
|
2024-06-24 16:48:32 +01:00
|
|
|
"packspec",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
rocks = {
|
2024-06-24 18:44:35 +01:00
|
|
|
enabled = true,
|
2024-06-24 16:48:32 +01:00
|
|
|
root = vim.fn.stdpath("data") .. "/lazy-rocks",
|
|
|
|
server = "https://nvim-neorocks.github.io/rocks-binaries/",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
- Installing [neorg](https://github.com/nvim-neorg/neorg) is now as simple as:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
{ "nvim-neorg/neorg", opts = {} }
|
|
|
|
```
|
|
|
|
|
2024-06-24 14:11:51 +01:00
|
|
|
- Packages are not limited to just Neovim plugins. You can install any **luarocks** package, like:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
{ "https://github.com/lubyk/yaml" }
|
|
|
|
```
|
|
|
|
|
|
|
|
Luarocks packages without a `/lua` directory are never lazy-loaded, since it's just a library.
|
|
|
|
|
|
|
|
- `build` functions or `*.lua` build files (like `build.lua`) now run asynchronously.
|
|
|
|
You can use `coroutine.yield(status_msg)` to show progress.
|
|
|
|
Yielding will also schedule the next `resume` to run in the next tick,
|
|
|
|
so you can do long-running tasks without blocking Neovim.
|
|
|
|
|