nix-community.nixvim/tests/test-sources/plugins/utils/alpha.nix

85 lines
2.2 KiB
Nix
Raw Normal View History

{
2024-01-12 23:13:04 +01:00
theme = {
plugins.alpha = {
enable = true;
theme = "dashboard";
};
};
theme-lua = {
plugins.alpha = {
enable = true;
theme.__raw = "require'alpha.themes.startify'.config";
};
};
2024-01-12 23:13:04 +01:00
custom-layout = {
plugins.alpha = {
enable = true;
2024-01-12 23:13:04 +01:00
iconsEnabled = true;
layout = [
{
type = "padding";
val = 2;
}
{
type = "text";
val = [
2024-01-12 23:13:04 +01:00
" "
" "
" "
" "
" "
" "
];
opts = {
position = "center";
hl = "Type";
};
}
{
type = "padding";
val = 2;
}
{
type = "group";
val = [
{
shortcut = "e";
desc = " New file";
command = "<CMD>ene <CR>";
}
{
shortcut = "SPC q";
desc = " Quit Neovim";
command = ":qa<CR>";
}
];
}
{
type = "padding";
val = 2;
}
{
type = "text";
val = "Inspiring quote here.";
opts = {
position = "center";
hl = "Keyword";
};
}
];
2024-01-12 23:13:04 +01:00
opts = {
margin = 0;
noautocmd = true;
keymap = {
press = "<CR>";
press_queue = "<M-CR>";
};
};
};
};
}