1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
return {
-- Dependency required by nvzone/menu
{ "nvzone/volt", lazy = true },
{
"nvzone/menu",
lazy = true,
keys = {
{
"<leader>om",
function()
local ok, menu = pcall(require, "menu")
if not ok then
vim.notify("menu.nvim no disponible", vim.log.levels.ERROR)
return
end
local ok_items, items = pcall(require, "menus.oil")
if not ok_items then
vim.notify("menus.oil no encontrado", vim.log.levels.ERROR)
return
end
menu.open(items)
end,
desc = "Abrir menú de Oil",
},
{
"<leader>cm",
function()
local ok, menu = pcall(require, "menu")
if not ok then
vim.notify("menu.nvim no disponible", vim.log.levels.ERROR)
return
end
local ok_items, items = pcall(require, "menus.colors")
if not ok_items then
vim.notify("menus.colors no encontrado", vim.log.levels.ERROR)
return
end
menu.open(items)
end,
desc = "Abrir menú de Colores (Minty)",
},
},
},
}
|