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

68 lines
1.9 KiB
Nix
Raw Normal View History

{...}: {
programs.nixvim.plugins.alpha = {
enable = true;
layout = [
{
2024-02-19 14:27:13 +01:00
type = "padding";
val = 2;
}
{
opts = {
2024-02-19 14:27:13 +01:00
hl = "Type";
position = "center";
};
2024-02-19 14:27:13 +01:00
type = "text";
val = [
" "
" "
" "
" "
" "
" "
];
}
{
type = "padding";
val = 2;
}
{
type = "group";
val = [
{
on_press = {
__raw = "function() vim.cmd[[ene]] end";
};
opts = {
shortcut = "n";
};
type = "button";
val = " New file";
}
{
on_press = {
__raw = "function() vim.cmd[[qa]] end";
};
opts = {
shortcut = "q";
};
type = "button";
val = " Quit Neovim";
}
];
}
{
type = "padding";
val = 2;
}
{
opts = {
2024-02-19 14:27:13 +01:00
hl = "Keyword";
position = "center";
};
2024-02-19 14:27:13 +01:00
type = "text";
val = "Inspiring quote here.";
}
];
};
}