aboutsummaryrefslogtreecommitdiffstats
path: root/lua/plugins/menu.lua
blob: aa5a4d1acd17b3f0f8a6a9c4954194694076199a (plain)
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
return {
  -- Dependency required by nvzone/menu
  { "nvzone/volt", lazy = true },

  {
    "nvzone/menu",
    lazy = true,
    keys = {
      {
        "<leader>um",
        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",
      },
    },
  },
}