mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
plugins/alpha: fix example (for buttons)
This commit is contained in:
parent
8104e24adc
commit
7801be57d6
2 changed files with 8 additions and 0 deletions
|
@ -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";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue