docs(readme): add nixvim example (#123)

This commit is contained in:
Heitor Augusto
2024-12-28 14:12:39 -03:00
committed by GitHub
parent 317064a7de
commit ffeb54f68c

View File

@@ -285,10 +285,11 @@ require("lz.n").load {
<details>
<summary>
<b><a href="https://wiki.nixos.org/wiki/Neovim">Nix (Home Manager) example</a></b>
<b><a href="https://wiki.nixos.org/wiki/Neovim">Nix (Home Manager)</a> example</b>
</summary>
```nix
{
programs.neovim = {
enable = true;
plugins = with pkgs.vimPlugins [
@@ -317,6 +318,35 @@ require("lz.n").load {
}
];
};
}
```
</details>
<details>
<summary>
<b><a href="https://wiki.nixos.org/wiki/Neovim">Nix (NixVim)</a> example</b>
</summary>
> You can find up-to-date NixVim documentation for lazy-loading with `lz.n` here:
>
> https://nix-community.github.io/nixvim/user-guide/lazy-loading
```nix
{
# Enable lz.n as lazy-loading provider
plugins.lz-n.enable = true;
plugins.telescope = {
enable = true;
lazyLoad.settings.cmd = "Telescope";
};
colorschemes.catppuccin = {
enable = true;
lazyLoad.settings.colorscheme = "catppuccin";
};
}
```
</details>