plugins/alpha: refactor

This commit is contained in:
Gaetan Lepage 2024-01-12 23:13:04 +01:00 committed by Gaétan Lepage
parent c29a33d38a
commit 9e04eb3c3c
2 changed files with 124 additions and 135 deletions

View file

@ -1,11 +1,22 @@
{
empty = {
plugins.alpha.enable = true;
};
default = {
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 = [
{
@ -15,12 +26,12 @@
{
type = "text";
val = [
" "
" "
" "
" "
" "
" "
" "
" "
" "
" "
" "
" "
];
opts = {
position = "center";
@ -59,6 +70,15 @@
};
}
];
opts = {
margin = 0;
noautocmd = true;
keymap = {
press = "<CR>";
press_queue = "<M-CR>";
};
};
};
};
}