modules: add config.vim to built package's passthru

Accessible under `<package>.passthru.neovimConfiguration`
This commit is contained in:
raf 2024-11-08 19:47:01 +03:00
commit 0ba3ccdab8
Signed by: NotAShelf
GPG key ID: AF26552424E53993
2 changed files with 10 additions and 2 deletions

View file

@ -123,6 +123,11 @@ in {
paths = [neovim-wrapped printConfig printConfigPath];
postBuild = "echo Helpers added";
# Allow evaluating vimOptions, i.e., config.vim from the packages' passthru
# attribute. For example, packages.x86_64-linux.neovim.passthru.neovimConfig
# will return the configuration in full.
passthru.neovimConfig = vimOptions;
meta = {
description = "Wrapped version of Neovim with additional helper scripts";
mainProgram = "nvim";