1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-09 12:06:05 +01:00

top-level/output: add enablePrintInit option

This commit is contained in:
Gutyina Gergő 2025-07-05 20:03:57 +02:00 committed by Matt Sturgeon
parent 239d331bb4
commit ef0fa015a8

View file

@ -81,6 +81,17 @@ in
'';
};
enablePrintInit = mkOption {
type = types.bool;
default = true;
example = false;
description = ''
Install a tool that shows the content of the generated `init.lua` file.
Run it using `${config.build.printInitPackage.meta.mainProgram}`.
'';
};
build = {
# TODO: `standalonePackage`; i.e. package + printInitPackage + man-docs bundled together
@ -287,10 +298,12 @@ in
with config.build;
[
nvimPackage
printInitPackage
]
++ lib.optionals config.enableMan [
manDocsPackage
]
++ lib.optionals config.enablePrintInit [
printInitPackage
];
meta.mainProgram = "nvim";
};