mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 02:38:38 +02:00
plugins/alpha-nvim: add alpha-nvim plugin module + tests (#378)
* plugins/alpha-nvim: add alpha-nvim plugin module + tests * fix: remove telescope from defaults * Update plugins/utils/alpha.nix Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> * update: remove theme option * update: add default configuration --------- Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
This commit is contained in:
parent
b3cb98e4a8
commit
b69bde941a
3 changed files with 280 additions and 0 deletions
64
tests/test-sources/plugins/utils/alpha.nix
Normal file
64
tests/test-sources/plugins/utils/alpha.nix
Normal file
|
@ -0,0 +1,64 @@
|
|||
{pkgs}: {
|
||||
empty = {
|
||||
plugins.alpha.enable = true;
|
||||
};
|
||||
|
||||
default = {
|
||||
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 = [
|
||||
{
|
||||
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";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue