nix/home-manager/common/software/cli/nixvim/alpha.nix
2024-06-19 22:06:09 +09:00

50 lines
2.3 KiB
Nix
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ ... }: {
programs.nixvim.plugins.alpha = {
enable = true;
iconsEnabled = true;
layout =
let
centeredText = {
position = "center";
hl = "@comment";
};
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 2)
(mkText ''
'')
(mkPadding 2)
(mkText ''
"Gordon doesn't need to hear all this,
he's a highly trained professional"
- Dr. Coomer PhD, 2000
'')
];
};
}