nichts/modules/editors/nixvim/plug/ui/alpha.nix

94 lines
3.1 KiB
Nix
Raw Normal View History

2024-05-22 10:43:46 +02:00
{
2024-05-22 14:29:45 +02:00
programs.nixvim = {
plugins.alpha = let
nixFlake = [
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
];
in {
enable = true;
layout = [
{
type = "padding";
val = 4;
}
{
opts = {
hl = "AlphaHeader";
position = "center";
};
type = "text";
val = nixFlake;
}
{
type = "padding";
val = 2;
}
{
type = "group";
val = let
mkButton = shortcut: cmd: val: hl: {
type = "button";
inherit val;
opts = {
inherit hl shortcut;
keymap = [
"n"
shortcut
cmd
{}
];
position = "center";
cursor = 0;
width = 40;
align_shortcut = "right";
hl_shortcut = "Keyword";
};
2024-05-22 10:43:46 +02:00
};
2024-05-22 14:29:45 +02:00
in [
(
mkButton
"f"
"<CMD>lua require('telescope.builtin').find_files({hidden = true})<CR>"
"🔍 Find File"
"Operator"
)
(
mkButton
"q"
"<CMD>qa<CR>"
"💣 Quit Neovim"
"String"
)
];
}
{
type = "padding";
val = 2;
}
{
opts = {
hl = "Gruvbox";
position = "center";
2024-05-22 10:43:46 +02:00
};
2024-05-22 14:29:45 +02:00
type = "text";
val = "https://github.com/bloxx12/nichts";
}
];
};
2024-05-22 10:43:46 +02:00
};
}