Skip to content

Commit

Permalink
plugins/alpha: fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Jan 16, 2024
1 parent e6f1af2 commit ec00c47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 4 additions & 6 deletions plugins/utils/alpha.nix
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,12 @@ in {
type = "group";
val = [
{
shortcut = "e";
desc = " New file";
command = "<CMD>ene <CR>";
val = " New file";
on_press.__raw = "function() vim.cmd[[ene]] end";
}
{
shortcut = "SPC q";
desc = " Quit Neovim";
command = ":qa<CR>";
val = " Quit Neovim";
on_press.__raw = "function() vim.cmd[[qa]] end";
}
];
}
Expand Down
10 changes: 4 additions & 6 deletions tests/test-sources/plugins/utils/alpha.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,12 @@
type = "group";
val = [
{
shortcut = "e";
desc = " New file";
command = "<CMD>ene <CR>";
val = " New file";
on_press.__raw = "function() vim.cmd[[ene]] end";
}
{
shortcut = "SPC q";
desc = " Quit Neovim";
command = ":qa<CR>";
val = " Quit Neovim";
on_press.__raw = "function() vim.cmd[[qa]] end";
}
];
}
Expand Down

0 comments on commit ec00c47

Please sign in to comment.