nix/home-manager/common/software/cli/nixvim/alpha.nix
2024-03-18 11:45:39 +09:00

82 lines
2.3 KiB
Nix

{...}: {
programs.nixvim.plugins.alpha = {
enable = true;
layout = [
{
type = "padding";
val = 2;
}
{
type = "text";
val = [
" "
" "
" "
" "
" "
" "
" Be kind to yourself. "
];
opts = {
position = "center";
hl = "Type";
};
}
{ type = "padding"; val = 2; }
{
type = "group";
val = [
{
shortcut = "e";
desc = " New file";
command = "<CMD>ene <CR>";
}
];
}
{ type = "padding"; val = 1; }
{
type = "group";
val = [
{
shortcut = "f";
desc = " Open File";
command = ":Telescope find_files<CR>";
}
];
}
{ type = "padding"; val = 1; }
{
type = "group";
val = [
{
shortcut = "r";
desc = "󰁯 Recently Opened";
command = ":Telescope oldfiles<CR>";
}
];
}
{ type = "padding"; val = 1; }
{
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>";
}
];
}
];
};
}