From ec00c47ddf4a420d02a6b00852f66cc7df3a87dd Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 16 Jan 2024 00:02:22 +0100 Subject: [PATCH] plugins/alpha: fix example --- plugins/utils/alpha.nix | 10 ++++------ tests/test-sources/plugins/utils/alpha.nix | 10 ++++------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/plugins/utils/alpha.nix b/plugins/utils/alpha.nix index 0e7403b9..c3ed4132 100644 --- a/plugins/utils/alpha.nix +++ b/plugins/utils/alpha.nix @@ -104,14 +104,12 @@ in { type = "group"; val = [ { - shortcut = "e"; - desc = " New file"; - command = "ene "; + val = " New file"; + on_press.__raw = "function() vim.cmd[[ene]] end"; } { - shortcut = "SPC q"; - desc = " Quit Neovim"; - command = ":qa"; + val = " Quit Neovim"; + on_press.__raw = "function() vim.cmd[[qa]] end"; } ]; } diff --git a/tests/test-sources/plugins/utils/alpha.nix b/tests/test-sources/plugins/utils/alpha.nix index 31a48ddc..b47e8a37 100644 --- a/tests/test-sources/plugins/utils/alpha.nix +++ b/tests/test-sources/plugins/utils/alpha.nix @@ -46,14 +46,12 @@ type = "group"; val = [ { - shortcut = "e"; - desc = " New file"; - command = "ene "; + val = " New file"; + on_press.__raw = "function() vim.cmd[[ene]] end"; } { - shortcut = "SPC q"; - desc = " Quit Neovim"; - command = ":qa"; + val = " Quit Neovim"; + on_press.__raw = "function() vim.cmd[[qa]] end"; } ]; }