aboutsummaryrefslogtreecommitdiffstats
path: root/lua/plugins/menu.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins/menu.lua')
-rw-r--r--lua/plugins/menu.lua45
1 files changed, 45 insertions, 0 deletions
diff --git a/lua/plugins/menu.lua b/lua/plugins/menu.lua
new file mode 100644
index 0000000..87c2517
--- /dev/null
+++ b/lua/plugins/menu.lua
@@ -0,0 +1,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)",
+ },
+ },
+ },
+}