added custom header option
This commit is contained in:
parent
413651f285
commit
6a2b1631f2
2 changed files with 20 additions and 9 deletions
|
@ -12,7 +12,13 @@
|
|||
enable-startify-cowsay = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Enable startify";
|
||||
description = "Enable startify cowsay";
|
||||
};
|
||||
|
||||
startify-header = lib.mkOption {
|
||||
type = lib.types.nullOr (lib.types.listOf lib.types.str);
|
||||
default = null;
|
||||
description = "Startify text/ascii image, if cowsay disabled";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,16 +1,21 @@
|
|||
{ config, ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
header-space = " ";
|
||||
in
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.startify = {
|
||||
enable = true;
|
||||
settings = {
|
||||
custom_header = if config.nixvim-config.enable-startify-cowsay then null else [
|
||||
''. _______ ____ ____.___ _____''
|
||||
''. \ \ ____ ___\ \ / /| | / \''
|
||||
''. / | \_/ __ \/ _ \ Y / | |/ \ / \''
|
||||
''. / | \ ___( <_> ) / | / Y \''
|
||||
''. \____|__ /\___ >____/ \___/ |___\____|__ /''
|
||||
''. \/ \/ \/''
|
||||
custom_header = if config.nixvim-config.enable-startify-cowsay then null
|
||||
else if config.nixvim-config.startify-header != null
|
||||
then config.nixvim-config.startify-header else [
|
||||
''${header-space} _______ ____ ____.___ _____''
|
||||
''${header-space} \ \ ____ ___\ \ / /| | / \''
|
||||
''${header-space} / | \_/ __ \/ _ \ Y / | |/ \ / \''
|
||||
''${header-space}/ | \ ___( <_> ) / | / Y \''
|
||||
''${header-space}\____|__ /\___ >____/ \___/ |___\____|__ /''
|
||||
''${header-space} \/ \/ \/''
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue