docs: document custom package usage

This commit is contained in:
raf 2023-08-02 09:53:07 +03:00
commit c9509d5b09
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
3 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,14 @@
[[ch-custom-package]]
== Custom Neovim Package
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.
[source,nix]
----
{inputs, pkgs, ...}: {
# using the neovim-nightly overlay
config.vim.package = inputs.neovim-overlay.packages.${pkgs.system}.neovim;
}
----
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.