plugins/alpha: fix example (for buttons)

This commit is contained in:
Gaetan Lepage 2024-01-18 00:04:49 +01:00 committed by Gaétan Lepage
parent 8104e24adc
commit 7801be57d6
2 changed files with 8 additions and 0 deletions

View file

@ -104,12 +104,16 @@ in {
type = "group"; type = "group";
val = [ val = [
{ {
type = "button";
val = " New file"; val = " New file";
on_press.__raw = "function() vim.cmd[[ene]] end"; on_press.__raw = "function() vim.cmd[[ene]] end";
opts.shortcut = "n";
} }
{ {
type = "button";
val = " Quit Neovim"; val = " Quit Neovim";
on_press.__raw = "function() vim.cmd[[qa]] end"; on_press.__raw = "function() vim.cmd[[qa]] end";
opts.shortcut = "q";
} }
]; ];
} }

View file

@ -46,12 +46,16 @@
type = "group"; type = "group";
val = [ val = [
{ {
type = "button";
val = " New file"; val = " New file";
on_press.__raw = "function() vim.cmd[[ene]] end"; on_press.__raw = "function() vim.cmd[[ene]] end";
opts.shortcut = "n";
} }
{ {
type = "button";
val = " Quit Neovim"; val = " Quit Neovim";
on_press.__raw = "function() vim.cmd[[qa]] end"; on_press.__raw = "function() vim.cmd[[qa]] end";
opts.shortcut = "q";
} }
]; ];
} }