Menu ui for neovim ( supports nested menus )
simplescreenrecorder-2024-10-05_19.06.12.mp4{ "nvzone/volt" , lazy = true }, { "nvzone/menu" , lazy = true },
require("menu").open(options, opts)
h
l
to move between windowsq
to close the window-- Keyboard users vim.keymap.set("n", "<C-t>", function() require("menu").open("default") end, {}) -- mouse users + nvimtree users! vim.keymap.set({ "n", "v" }, "<RightMouse>", function() require('menu.utils').delete_old_menus() vim.cmd.exec '"normal! \\<RightMouse>"' -- clicked buf 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, { mouse = true }) end, {})
Check example of defaults menu to see know syntax of options table.
If you like NvChad or its plugins and would like to support it via donation
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4