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

94 lines
2.9 KiB
Nix
Raw Normal View History

2024-05-22 10:43:46 +02:00
{
2024-05-22 14:04:58 +02:00
programs.nixvim = {
2024-05-22 10:43:46 +02:00
plugins.alpha = let
nixFlake = [
2024-05-22 14:04:58 +02:00
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
2024-05-22 10:43:46 +02:00
];
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";
};
};
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 = "GruvboxBlue";
position = "center";
};
type = "text";
val = "https://github.com/elythh/nixvim";
}
];
};
2024-05-22 14:04:58 +02:00
};
2024-05-22 10:43:46 +02:00
}