This commit is contained in:
meml0rz
2024-11-12 23:22:00 +01:00
parent d3c9070817
commit 15ead8ad53
3 changed files with 73 additions and 2 deletions

View File

@ -0,0 +1,71 @@
{ config, pkgs, nixvim, ... }:
{
programs.nixvim = {
plugins = {
alpha = {
layout = [
{
type = "padding";
val = 2;
}
{
opts = {
hl = "Type";
position = "center";
};
type = "text";
val = [
" "
" "
" "
" "
" "
" "
];
}
{
type = "padding";
val = 2;
}
{
type = "group";
val = [
{
on_press = {
__raw = "function() vim.cmd[[ene]] end";
};
opts = {
shortcut = "n";
};
type = "button";
val = " New file";
}
{
on_press = {
__raw = "function() vim.cmd[[qa]] end";
};
opts = {
shortcut = "q";
};
type = "button";
val = " Quit Neovim";
}
];
}
{
type = "padding";
val = 2;
}
{
opts = {
hl = "Keyword";
position = "center";
};
type = "text";
val = "Inspiring quote here.";
}
]
};
};
};
}

View File

@ -9,7 +9,7 @@
autoEnableSources = true;
cmdline = {
completion = {
completeopt = { "menu", "menuone", "noinsert", "noselect" }
completeopt = [ "menu" "menuone" "noinsert" "noselect" ];
};
};
settings = {

View File

@ -7,7 +7,7 @@
./neotree.nix
./opts.nix
./lualine.nix
./alpha.nix
];
programs.nixvim = {
enable = true;