1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 11:36:07 +01:00
nixvim/tests/test-sources/plugins/by-name/alpha/default.nix
2025-11-06 07:49:11 +00:00

113 lines
2.8 KiB
Nix

{ lib, ... }:
{
theme = {
plugins.alpha = {
enable = true;
theme = "dashboard";
};
};
theme-raw-settings = {
plugins.alpha = {
enable = true;
settings = lib.nixvim.mkRaw "require('alpha.themes.dashboard').config";
};
};
terminal = {
plugins.alpha = {
enable = true;
settings.layout = [
{
type = "terminal";
command = "echo 'Welcome to Nixvim!'";
width = 46;
height = 25;
opts = {
redraw = true;
};
}
];
};
};
custom-layout = {
plugins.alpha = {
enable = true;
settings.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";
};
}
];
settings.opts = {
margin = 0;
noautocmd = true;
keymap = {
press = "<CR>";
press_queue = "<M-CR>";
};
};
};
};
no-icons = {
plugins.web-devicons.enable = false;
plugins.alpha = {
enable = true;
settings = lib.nixvim.mkRaw "require('alpha.themes.dashboard').config";
};
};
}