Skip to content

Commit

Permalink
plugins/alpha: fix example (for buttons)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Jan 18, 2024
1 parent 8104e24 commit 7801be5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/utils/alpha.nix
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,16 @@ in {
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";
}
];
}
Expand Down
4 changes: 4 additions & 0 deletions tests/test-sources/plugins/utils/alpha.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,16 @@
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";
}
];
}
Expand Down

0 comments on commit 7801be5

Please sign in to comment.