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

83 lines
2.3 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;
}
{
type = "text";
val = [
2024-02-19 14:34:46 +01:00
" "
" "
" "
" "
" "
" "
2024-03-18 03:45:39 +01:00
" Be kind to yourself. "
2024-02-19 14:27:13 +01:00
];
2024-02-19 14:33:21 +01:00
opts = {
position = "center";
hl = "Type";
};
2024-02-19 14:27:13 +01:00
}
2024-02-20 03:04:49 +01:00
{ type = "padding"; val = 2; }
2024-02-19 14:27:13 +01:00
{
type = "group";
val = [
{
2024-02-19 14:34:46 +01:00
shortcut = "e";
desc = " New file";
command = "<CMD>ene <CR>";
2024-02-19 14:27:13 +01:00
}
2024-02-20 03:04:49 +01:00
];
}
{ type = "padding"; val = 1; }
{
type = "group";
val = [
2024-02-19 14:27:13 +01:00
{
2024-02-20 03:04:49 +01:00
shortcut = "f";
desc = " Open File";
command = ":Telescope find_files<CR>";
2024-02-19 14:27:13 +01:00
}
2024-02-20 03:04:49 +01:00
];
2024-02-19 14:27:13 +01:00
}
2024-02-20 03:04:49 +01:00
{ type = "padding"; val = 1; }
2024-02-19 14:27:13 +01:00
{
2024-02-20 03:04:49 +01:00
type = "group";
val = [
{
shortcut = "r";
desc = "󰁯 Recently Opened";
command = ":Telescope oldfiles<CR>";
}
];
}
2024-02-20 03:04:49 +01:00
{ type = "padding"; val = 1; }
{
2024-02-20 03:04:49 +01:00
type = "group";
val = [
{
shortcut = "g";
desc = "󰖬 Find Word";
command = ":Telescope live_grep<CR>";
}
];
}
{ type = "padding"; val = 1; }
{
type = "group";
val = [
{
shortcut = "q";
desc = " Quit Neovim";
command = ":qa<CR>";
}
];
}
];
};
}