enc: update config mason backdrop

This commit is contained in:
pojok code 2025-06-11 21:13:56 +07:00
parent 04f3bfc8a3
commit f3761c699a
16 changed files with 316 additions and 277 deletions

View file

@ -1,12 +1,13 @@
return {
{
"nvchad/menu",
"nvzone/menu",
lazy = true,
event = { "VeryLazy" },
dependencies = {
{ "nvchad/volt", lazy = true },
{ "nvzone/volt", lazy = true },
{ "nvzone/showkeys", cmd = "ShowkeysToggle", lazy = true },
{
"nvchad/minty",
"nvzone/minty",
cmd = { "Shades", "Huefy" },
lazy = true,
},
@ -22,10 +23,12 @@ return {
end, {})
-- mouse users + nvimtree users!
vim.keymap.set("n", "<RightMouse>", function()
vim.keymap.set({ "n", "v" }, "<RightMouse>", function()
require("menu.utils").delete_old_menus()
vim.cmd.exec('"normal! \\<RightMouse>"')
local options = vim.bo.ft == "NvimTree" and "nvimtree" or "default"
local buf = vim.api.nvim_win_get_buf(vim.fn.getmousepos().winid)
local options = vim.bo[buf].ft == "NvimTree" and "nvimtree" or "default"
require("menu").open(options, opts)
end, {})
end,