nix/home-manager/common/software/cli/nixvim/alpha.nix

51 lines
2.3 KiB
Nix
Raw Normal View History

2024-06-19 12:55:40 +02:00
{ ... }: {
programs.nixvim.plugins.alpha = {
enable = true;
2024-06-19 12:55:40 +02:00
iconsEnabled = true;
layout =
let
centeredText = {
2024-02-19 14:33:21 +01:00
position = "center";
2024-06-19 12:55:40 +02:00
hl = "@comment";
2024-02-19 14:33:21 +01:00
};
2024-06-19 12:55:40 +02:00
mkPadding = size: { type = "padding"; val = size; };
mkText = text: { type = "text"; val = text; opts = centeredText; };
mkGroup = val: { inherit val; type = "group"; };
mkGroupItem = desc: shortcut: {
inherit shortcut desc;
command = "";
};
in
[
(mkPadding 10)
(mkText ''
'')
(mkPadding 2)
(mkText ''
"Gordon doesn't need to hear all this,
he's a highly trained professional"
- Dr. Coomer PhD, 2000
'')
];
};
}