2024-04-20 03:57:11 +00:00
|
|
|
# Custom Neovim Package {#ch-custom-package}
|
|
|
|
|
2024-04-27 12:44:37 +00:00
|
|
|
As of v0.5, you may now specify the Neovim package that will be wrapped with
|
|
|
|
your configuration. This is done with the `vim.package` option.
|
2024-04-20 03:57:11 +00:00
|
|
|
|
|
|
|
```nix
|
|
|
|
{inputs, pkgs, ...}: {
|
|
|
|
# using the neovim-nightly overlay
|
|
|
|
vim.package = inputs.neovim-overlay.packages.${pkgs.system}.neovim;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2024-04-27 12:44:37 +00:00
|
|
|
The neovim-nightly-overlay always exposes an unwrapped package. If using a
|
|
|
|
different source, you are highly recommended to get an "unwrapped" version of
|
|
|
|
the neovim package, similar to `neovim-unwrapped` in nixpkgs.
|
2024-04-20 03:57:11 +00:00
|
|
|
|
|
|
|
```nix
|
|
|
|
{ pkgs, ...}: {
|
|
|
|
# using the neovim-nightly overlay
|
|
|
|
vim.package = pkgs.neovim-unwrapped;
|
|
|
|
}
|
|
|
|
```
|