nixvim!
This commit is contained in:
parent
1ae2d7cc6a
commit
6198767e5b
47 changed files with 2430 additions and 108 deletions
89
modules/editors/nixvim/plug/ui/alpha.nix
Normal file
89
modules/editors/nixvim/plug/ui/alpha.nix
Normal file
|
@ -0,0 +1,89 @@
|
|||
{
|
||||
plugins.alpha = let
|
||||
nixFlake = [
|
||||
" "
|
||||
" ▓█████ ██▓ ▓██ ██▓▄▄▄█████▓ ██░ ██ "
|
||||
" ▓█ ▀ ▓██▒ ▒██ ██▒▓ ██▒ ▓▒▓██░ ██▒ "
|
||||
" ▒███ ▒██░ ▒██ ██░▒ ▓██░ ▒░▒██▀▀██░ "
|
||||
" ▒▓█ ▄ ▒██░ ░ ▐██▓░░ ▓██▓ ░ ░▓█ ░██ "
|
||||
" ░▒████▒░██████▒ ░ ██▒▓░ ▒██▒ ░ ░▓█▒░██▓ "
|
||||
" ░░ ▒░ ░░ ▒░▓ ░ ██▒▒▒ ▒ ░░ ▒ ░░▒░▒ "
|
||||
" ░ ░ ░░ ░ ▒ ░▓██ ░▒░ ░ ▒ ░▒░ ░ "
|
||||
" ░ ░ ░ ▒ ▒ ░░ ░ ░ ░░ ░ "
|
||||
" ░ ░ ░ ░░ ░ ░ ░ ░ "
|
||||
" ░ ░ "
|
||||
" "
|
||||
" git@github.com:elythh "
|
||||
];
|
||||
in {
|
||||
enable = true;
|
||||
layout = [
|
||||
{
|
||||
type = "padding";
|
||||
val = 4;
|
||||
}
|
||||
{
|
||||
opts = {
|
||||
hl = "AlphaHeader";
|
||||
position = "center";
|
||||
};
|
||||
type = "text";
|
||||
val = nixFlake;
|
||||
}
|
||||
{
|
||||
type = "padding";
|
||||
val = 2;
|
||||
}
|
||||
{
|
||||
type = "group";
|
||||
val = let
|
||||
mkButton = shortcut: cmd: val: hl: {
|
||||
type = "button";
|
||||
inherit val;
|
||||
opts = {
|
||||
inherit hl shortcut;
|
||||
keymap = [
|
||||
"n"
|
||||
shortcut
|
||||
cmd
|
||||
{}
|
||||
];
|
||||
position = "center";
|
||||
cursor = 0;
|
||||
width = 40;
|
||||
align_shortcut = "right";
|
||||
hl_shortcut = "Keyword";
|
||||
};
|
||||
};
|
||||
in [
|
||||
(
|
||||
mkButton
|
||||
"f"
|
||||
"<CMD>lua require('telescope.builtin').find_files({hidden = true})<CR>"
|
||||
"🔍 Find File"
|
||||
"Operator"
|
||||
)
|
||||
(
|
||||
mkButton
|
||||
"q"
|
||||
"<CMD>qa<CR>"
|
||||
"💣 Quit Neovim"
|
||||
"String"
|
||||
)
|
||||
];
|
||||
}
|
||||
{
|
||||
type = "padding";
|
||||
val = 2;
|
||||
}
|
||||
{
|
||||
opts = {
|
||||
hl = "GruvboxBlue";
|
||||
position = "center";
|
||||
};
|
||||
type = "text";
|
||||
val = "https://github.com/elythh/nixvim";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue