nix-community.nixvim/tests/test-sources/plugins/utils/alpha.nix
2024-01-18 13:26:51 +01:00

86 lines
2.3 KiB
Nix

{
theme = {
plugins.alpha = {
enable = true;
theme = "dashboard";
};
};
theme-lua = {
plugins.alpha = {
enable = true;
theme.__raw = "require'alpha.themes.startify'.config";
};
};
custom-layout = {
plugins.alpha = {
enable = true;
iconsEnabled = true;
layout = [
{
type = "padding";
val = 2;
}
{
type = "text";
val = [
" "
" "
" "
" "
" "
" "
];
opts = {
position = "center";
hl = "Type";
};
}
{
type = "padding";
val = 2;
}
{
type = "group";
val = [
{
type = "button";
val = " New file";
on_press.__raw = "function() vim.cmd[[ene]] end";
opts.shortcut = "n";
}
{
type = "button";
val = " Quit Neovim";
on_press.__raw = "function() vim.cmd[[qa]] end";
opts.shortcut = "q";
}
];
}
{
type = "padding";
val = 2;
}
{
type = "text";
val = "Inspiring quote here.";
opts = {
position = "center";
hl = "Keyword";
};
}
];
opts = {
margin = 0;
noautocmd = true;
keymap = {
press = "<CR>";
press_queue = "<M-CR>";
};
};
};
};
}