Skip to content

Commit

Permalink
alpha refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
siph committed Jan 22, 2024
1 parent 295c3f3 commit 2cb8304
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 58 deletions.
47 changes: 35 additions & 12 deletions config/visuals/alpha.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
}
{
opts = {
hl = "GruvboxPurple";
hl = "Constant";
position = "center";
};
type = "text";
Expand All @@ -64,17 +64,40 @@
}
{
type = "group";
val = [
{
command = "<CMD>Telescope find_files<CR>";
desc = "🔍 Find File";
shortcut = "f";
}
{
command = "<CMD>qa<CR>";
desc = "💣 Quit Neovim";
shortcut = "q";
}
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"
)
];
}
{
Expand Down
92 changes: 46 additions & 46 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2cb8304

Please sign in to comment.