2024-11-04 21:29:25 +07:00
|
|
|
return {
|
2024-11-06 12:22:10 +07:00
|
|
|
{
|
|
|
|
"nvchad/menu",
|
|
|
|
lazy = true,
|
|
|
|
event = { "VeryLazy" },
|
|
|
|
dependencies = {
|
|
|
|
{ "nvchad/volt", lazy = true },
|
|
|
|
{
|
|
|
|
"nvchad/minty",
|
|
|
|
cmd = { "Shades", "Huefy" },
|
|
|
|
lazy = true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
opts = {
|
|
|
|
mouse = true,
|
|
|
|
border = true,
|
|
|
|
},
|
|
|
|
config = function(_, opts)
|
|
|
|
-- Keyboard users
|
|
|
|
vim.keymap.set("n", "<C-t>", function()
|
|
|
|
require("menu").open("default")
|
|
|
|
end, {})
|
2024-11-04 21:29:25 +07:00
|
|
|
|
2024-11-06 12:22:10 +07:00
|
|
|
-- mouse users + nvimtree users!
|
|
|
|
vim.keymap.set("n", "<RightMouse>", function()
|
|
|
|
vim.cmd.exec('"normal! \\<RightMouse>"')
|
2024-11-04 21:29:25 +07:00
|
|
|
|
2024-11-06 12:22:10 +07:00
|
|
|
local options = vim.bo.ft == "NvimTree" and "nvimtree" or "default"
|
|
|
|
require("menu").open(options, opts)
|
|
|
|
end, {})
|
|
|
|
end,
|
|
|
|
},
|
2024-11-04 21:29:25 +07:00
|
|
|
}
|