Home

Awesome

Menu

Menu ui for neovim ( supports nested menus )

image image image

https://github.com/user-attachments/assets/89d96170-e039-4d3d-9640-0fdc3358a833

Install

{ "nvzone/volt" , lazy = true },
{ "nvzone/menu" , lazy = true },

Usage

require("menu").open(options, opts) 

For keyboard users

Examples

-- Keyboard users
vim.keymap.set("n", "<C-t>", function()
  require("menu").open("default")
end, {})

-- mouse users + nvimtree users!
vim.keymap.set("n", "<RightMouse>", function()
  vim.cmd.exec '"normal! \\<RightMouse>"'

  local options = vim.bo.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.

:gift_heart: Support

If you like NvChad or its plugins and would like to support it via donation

kofi paypal buymeacoffee patreon